Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 178.6 kB / 16.77 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007811/0.0007812, allocations: 94.34 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0696/0.0696, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003843/0.0003844, allocations: 12 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08133/0.08173, allocations: 50.38 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002021/0.08379, allocations: 1.989 MB / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.08484, allocations: 0.8235 MB / 445.8 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.08499, allocations: 7.938 kB / 445.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.08522, allocations: 43.7 kB / 445.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.08539, allocations: 47.67 kB / 445.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.08582, allocations: 167.6 kB / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002693/0.0861, allocations: 355.5 kB / 446.4 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.08627, allocations: 95.11 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.08642, allocations: 139.4 kB / 446.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.08659, allocations: 155.4 kB / 446.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.963e-05/0.08664, allocations: 19.94 kB / 446.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.811e-05/0.08668, allocations: 16 kB / 446.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.774e-05/0.08677, allocations: 79.78 kB / 446.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.08688, allocations: 160.9 kB / 447 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.08706, allocations: 255.6 kB / 447.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.08707, allocations: 0 / 447.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.08708, allocations: 4 kB / 447.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.08709, allocations: 0 / 447.3 MB, free: 11.77 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009363/0.08803, allocations: 0.6237 MB / 447.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.08807, allocations: 8.031 kB / 447.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.08814, allocations: 44.47 kB / 448 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.08844, allocations: 303.1 kB / 448.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.08862, allocations: 146.2 kB / 448.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.08868, allocations: 28.38 kB / 448.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009958/0.08968, allocations: 0.5933 MB / 449 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.08971, allocations: 4 kB / 449 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.08975, allocations: 12 kB / 449 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.08976, allocations: 4 kB / 449 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.0909, allocations: 0.5308 MB / 449.6 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.09211, allocations: 1.037 MB / 450.6 MB, free: 8.238 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.0934, allocations: 0.5181 MB / 451.1 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004953/0.09391, allocations: 271.4 kB / 451.4 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.09397, allocations: 8.141 kB / 451.4 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.09399, allocations: 42.5 kB / 451.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.094, allocations: 0 / 451.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03323/0.1272, allocations: 6.787 MB / 458.2 MB, free: 0.543 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.923e-05/0.1274, allocations: 145 kB / 458.4 MB, free: 380 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.1276, allocations: 262.5 kB / 458.6 MB, free: 104 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.88e-05/0.1277, allocations: 37.7 kB / 458.7 MB, free: 60 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.694e-05/0.1278, allocations: 149.4 kB / 458.8 MB, free: 15.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.1279, allocations: 197.3 kB / 459 MB, free: 15.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.376e-05/0.128, allocations: 16 kB / 459 MB, free: 15.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1282, allocations: 346.8 kB / 459.3 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.1297, allocations: 0.65 MB / 460 MB, free: 14.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/0.1313, allocations: 0.8354 MB / 460.8 MB, free: 13.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002852/0.1342, allocations: 1.318 MB / 462.2 MB, free: 12.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1342, allocations: 4 kB / 462.2 MB, free: 12.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003301/0.1375, allocations: 1.464 MB / 463.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.1375, allocations: 12.03 kB / 463.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1375, allocations: 4.078 kB / 463.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.1376, allocations: 12 kB / 463.6 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.1388, allocations: 231.7 kB / 463.9 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.1389, allocations: 15.92 kB / 463.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008682/0.1397, allocations: 119.7 kB / 464 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.833e-05/0.1398, allocations: 35.98 kB / 464 MB, free: 10.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003268/0.1402, allocations: 193.4 kB / 464.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.1404, allocations: 161.1 kB / 464.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001681/0.1406, allocations: 67.61 kB / 464.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.1406, allocations: 8 kB / 464.5 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1407, allocations: 8 kB / 464.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.1407, allocations: 7.984 kB / 464.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004606/0.1453, allocations: 2.304 MB / 466.8 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.1453, allocations: 8 kB / 466.8 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007089/0.146, allocations: 208 kB / 467 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.213e-05/0.1461, allocations: 16 kB / 467 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.071e-05/0.1461, allocations: 24 kB / 467 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.215e-05/0.1461, allocations: 15.94 kB / 467 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/0.1461, allocations: 16.12 kB / 467.1 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.1491, allocations: 1.666 MB / 468.7 MB, free: 5.461 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.1494, allocations: 184.5 kB / 468.9 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/0.1494, allocations: 24 kB / 468.9 MB, free: 5.238 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005352/0.15, allocations: 103.9 kB / 469 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.1502, allocations: 107.6 kB / 469.1 MB, free: 5.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/0.1502, allocations: 28 kB / 469.2 MB, free: 5.004 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001776/0.1504, allocations: 182 kB / 469.3 MB, free: 4.824 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1504, allocations: 3.938 kB / 469.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006044/0.1511, allocations: 124 kB / 469.5 MB, free: 4.699 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00017/0.1512, allocations: 138.9 kB / 469.6 MB, free: 4.555 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002591/0.1538, allocations: 1.183 MB / 470.8 MB, free: 3.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1538, allocations: 4.062 kB / 470.8 MB, free: 3.367 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009257/0.1548, allocations: 378.2 kB / 471.2 MB, free: 3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.1559, allocations: 160.8 kB / 471.3 MB, free: 2.844 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.1582, allocations: 1.439 MB / 472.8 MB, free: 1.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.1586, allocations: 0.8249 MB / 473.6 MB, free: 392 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003378/0.1589, allocations: 47.42 kB / 473.6 MB, free: 344 kB / 314.7 MB Notification: Performance of SimCode: time 1.603e-06/0.1589, allocations: 4 kB / 473.6 MB, free: 340 kB / 314.7 MB Notification: Performance of Templates: time 0.009667/0.1686, allocations: 7.292 MB / 480.9 MB, free: 9.02 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.y,angle.phi,gain.y,speed.w,time