Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0009933/0.0009936, allocations: 172.9 kB / 16.8 MB, free: 5.008 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.602/1.602, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007426/0.0007427, allocations: 89.48 kB / 271.3 MB, free: 8.242 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.07292/0.07292, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003532, allocations: 12.38 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08469, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002462/0.0872, allocations: 2.058 MB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.08869, allocations: 0.8466 MB / 446.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.08898, allocations: 11.94 kB / 446.6 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002978/0.08929, allocations: 39.77 kB / 446.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003108/0.08962, allocations: 51.67 kB / 446.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006277/0.09026, allocations: 175.7 kB / 446.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004092/0.09068, allocations: 379.4 kB / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.09089, allocations: 91.14 kB / 447.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.09115, allocations: 135.5 kB / 447.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.09139, allocations: 163.2 kB / 447.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.997e-05/0.09147, allocations: 16 kB / 447.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.046e-05/0.09153, allocations: 16 kB / 447.6 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.09165, allocations: 91.69 kB / 447.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.09179, allocations: 176.8 kB / 447.9 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002124/0.09201, allocations: 247.6 kB / 448.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.09202, allocations: 4 kB / 448.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.09203, allocations: 0 / 448.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.09205, allocations: 0 / 448.2 MB, free: 10.93 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.00115/0.09321, allocations: 0.6198 MB / 448.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.09325, allocations: 16.03 kB / 448.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.09339, allocations: 44.47 kB / 448.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.09374, allocations: 303.1 kB / 449.1 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.09394, allocations: 142.3 kB / 449.3 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.53e-05/0.094, allocations: 32.31 kB / 449.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.09507, allocations: 0.5981 MB / 449.9 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.09511, allocations: 0 / 449.9 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.09515, allocations: 12 kB / 449.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.09516, allocations: 7.938 kB / 449.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.09645, allocations: 0.5347 MB / 450.4 MB, free: 8.492 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.09786, allocations: 1.045 MB / 451.5 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.09937, allocations: 0.5141 MB / 452 MB, free: 6.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005713/0.09995, allocations: 271.4 kB / 452.3 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.075e-05/0.1, allocations: 8.141 kB / 452.3 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.1, allocations: 46.48 kB / 452.3 MB, free: 6.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.126e-06/0.1001, allocations: 0 / 452.3 MB, free: 6.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03783/0.1379, allocations: 6.791 MB / 459.1 MB, free: 15.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.1381, allocations: 145 kB / 459.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.1384, allocations: 262.5 kB / 459.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.76e-05/0.1385, allocations: 33.7 kB / 459.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1386, allocations: 153.4 kB / 459.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.1389, allocations: 189.3 kB / 459.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.595e-05/0.1389, allocations: 20 kB / 459.9 MB, free: 14.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1391, allocations: 338.8 kB / 460.2 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.1408, allocations: 0.6539 MB / 460.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/0.1426, allocations: 0.8315 MB / 461.7 MB, free: 12.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00325/0.1459, allocations: 1.329 MB / 463 MB, free: 11.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.1459, allocations: 0 / 463 MB, free: 11.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003811/0.1498, allocations: 1.476 MB / 464.5 MB, free: 10.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.1498, allocations: 8 kB / 464.5 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.1498, allocations: 15.97 kB / 464.5 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.12e-05/0.1499, allocations: 8 kB / 464.6 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.1513, allocations: 223.7 kB / 464.8 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.202e-05/0.1513, allocations: 19.92 kB / 464.8 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.1523, allocations: 119.7 kB / 464.9 MB, free: 9.656 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.1525, allocations: 31.98 kB / 464.9 MB, free: 9.625 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003924/0.1529, allocations: 194 kB / 465.1 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003566/0.1532, allocations: 161.3 kB / 465.3 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002138/0.1534, allocations: 71.61 kB / 465.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.1535, allocations: 8 kB / 465.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.1535, allocations: 240 / 465.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.1535, allocations: 7.984 kB / 465.4 MB, free: 9.176 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00509/0.1586, allocations: 2.316 MB / 467.7 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.553e-05/0.1586, allocations: 11.98 kB / 467.7 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008217/0.1595, allocations: 203.8 kB / 467.9 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.779e-05/0.1595, allocations: 12 kB / 467.9 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-05/0.1596, allocations: 24 kB / 467.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.822e-05/0.1596, allocations: 23.92 kB / 468 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.799e-06/0.1596, allocations: 12.02 kB / 468 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.1631, allocations: 1.678 MB / 469.6 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/0.1634, allocations: 176.5 kB / 469.8 MB, free: 4.375 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.019e-05/0.1634, allocations: 27.98 kB / 469.8 MB, free: 4.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000633/0.1641, allocations: 99.98 kB / 469.9 MB, free: 4.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/0.1643, allocations: 99.59 kB / 470 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-05/0.1644, allocations: 35.98 kB / 470.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002076/0.1646, allocations: 186 kB / 470.3 MB, free: 3.934 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1646, allocations: 0 / 470.3 MB, free: 3.934 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007488/0.1654, allocations: 124 kB / 470.4 MB, free: 3.812 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002006/0.1656, allocations: 134.9 kB / 470.5 MB, free: 3.672 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003003/0.1686, allocations: 1.187 MB / 471.7 MB, free: 2.484 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.1686, allocations: 4.375 kB / 471.7 MB, free: 2.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.1697, allocations: 382 kB / 472.1 MB, free: 2.109 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.1709, allocations: 158.2 kB / 472.2 MB, free: 1.957 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.1737, allocations: 1.486 MB / 473.7 MB, free: 304 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/0.1742, allocations: 0.8288 MB / 474.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/0.1746, allocations: 51.42 kB / 474.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of SimCode: time 5.82e-07/0.1746, allocations: 0 / 474.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of Templates: time 0.01237/0.187, allocations: 7.299 MB / 481.9 MB, free: 8.078 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.mat","../files/Modelica_Synchronous_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