Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 173.2 kB / 16.8 MB, free: 5.012 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.412/1.412, allocations: 205.4 MB / 223 MB, free: 9.008 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.0007556/0.0007556, allocations: 90.41 kB / 271.3 MB, free: 8.238 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.06543/0.06543, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.000397, allocations: 12 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08971, allocations: 50.37 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.002384/0.09215, allocations: 1.999 MB / 445.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.09365, allocations: 0.796 MB / 446.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/0.09397, allocations: 7.938 kB / 446.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002984/0.09429, allocations: 35.77 kB / 446.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.09457, allocations: 51.69 kB / 446.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.09512, allocations: 147.8 kB / 446.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.09554, allocations: 351.6 kB / 447.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.09575, allocations: 79.56 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.09596, allocations: 143.4 kB / 447.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.09619, allocations: 155.3 kB / 447.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.025e-05/0.09625, allocations: 16 kB / 447.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.223e-05/0.0963, allocations: 12 kB / 447.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.359e-05/0.0964, allocations: 79.72 kB / 447.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.09656, allocations: 156.9 kB / 447.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001898/0.09676, allocations: 219.4 kB / 447.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.09677, allocations: 4 kB / 447.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.09678, allocations: 0 / 447.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.09679, allocations: 0 / 447.9 MB, free: 11.18 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001045/0.09784, allocations: 0.5733 MB / 448.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.09789, allocations: 16.03 kB / 448.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.249e-05/0.09797, allocations: 36.56 kB / 448.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.09827, allocations: 264.4 kB / 448.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.09847, allocations: 142.2 kB / 448.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.09853, allocations: 32.38 kB / 449 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.09955, allocations: 0.5724 MB / 449.5 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.09959, allocations: 4 kB / 449.5 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.245e-05/0.09963, allocations: 8 kB / 449.5 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.09964, allocations: 8 kB / 449.5 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.1009, allocations: 0.5308 MB / 450.1 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001287/0.1022, allocations: 1.021 MB / 451.1 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.1036, allocations: 0.5272 MB / 451.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005472/0.1042, allocations: 271.4 kB / 451.9 MB, free: 6.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.93e-05/0.1043, allocations: 8 kB / 451.9 MB, free: 6.922 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.1043, allocations: 38.5 kB / 451.9 MB, free: 6.875 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.316e-06/0.1043, allocations: 0 / 451.9 MB, free: 6.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03759/0.1419, allocations: 6.757 MB / 458.7 MB, free: 104 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/0.1421, allocations: 153.2 kB / 458.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.1424, allocations: 186.7 kB / 459 MB, free: 15.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.409e-05/0.1425, allocations: 33.7 kB / 459.1 MB, free: 15.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.1426, allocations: 149.5 kB / 459.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002179/0.1428, allocations: 193.3 kB / 459.4 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-05/0.1429, allocations: 8.375 kB / 459.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1431, allocations: 346.8 kB / 459.7 MB, free: 15 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/0.1448, allocations: 0.6539 MB / 460.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.1466, allocations: 0.8363 MB / 461.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003247/0.1498, allocations: 1.329 MB / 462.6 MB, free: 12.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.1499, allocations: 0 / 462.6 MB, free: 12.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003764/0.1536, allocations: 1.483 MB / 464 MB, free: 10.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.1537, allocations: 4 kB / 464 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1537, allocations: 8 kB / 464.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.1537, allocations: 12.03 kB / 464.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.1551, allocations: 223.7 kB / 464.3 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.606e-05/0.1551, allocations: 23.91 kB / 464.3 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00099/0.1561, allocations: 123.7 kB / 464.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.212e-05/0.1562, allocations: 27.98 kB / 464.5 MB, free: 10.12 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.0003559/0.1566, allocations: 177.6 kB / 464.6 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003361/0.157, allocations: 149.2 kB / 464.8 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.1571, allocations: 63.3 kB / 464.8 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.1571, allocations: 12 kB / 464.9 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.1572, allocations: 0 / 464.9 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.1572, allocations: 7.984 kB / 464.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005171/0.1624, allocations: 2.293 MB / 467.2 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.503e-05/0.1624, allocations: 12 kB / 467.2 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008364/0.1632, allocations: 199.7 kB / 467.4 MB, free: 7.016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.967e-05/0.1633, allocations: 16 kB / 467.4 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-05/0.1634, allocations: 24 kB / 467.4 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.935e-05/0.1634, allocations: 23.92 kB / 467.4 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.466e-05/0.1634, allocations: 15.94 kB / 467.4 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.1668, allocations: 1.658 MB / 469.1 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.167, allocations: 160.8 kB / 469.3 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.873e-05/0.1671, allocations: 31.92 kB / 469.3 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005938/0.1677, allocations: 96.17 kB / 469.4 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.1679, allocations: 103.6 kB / 469.5 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-05/0.168, allocations: 31.94 kB / 469.5 MB, free: 4.691 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001474/0.1681, allocations: 160.2 kB / 469.7 MB, free: 4.535 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1682, allocations: 0 / 469.7 MB, free: 4.535 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007109/0.1689, allocations: 120 kB / 469.8 MB, free: 4.418 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.0001829/0.1691, allocations: 135 kB / 469.9 MB, free: 4.277 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003002/0.1721, allocations: 1.191 MB / 471.1 MB, free: 3.086 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.1721, allocations: 0 / 471.1 MB, free: 3.086 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.1732, allocations: 382.1 kB / 471.5 MB, free: 2.715 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.1743, allocations: 140.2 kB / 471.6 MB, free: 2.578 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.1771, allocations: 1.399 MB / 473 MB, free: 1.008 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005444/0.1777, allocations: 0.8132 MB / 473.8 MB, free: 176 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003923/0.1781, allocations: 43.42 kB / 473.9 MB, free: 132 kB / 314.7 MB Notification: Performance of SimCode: time 1.223e-06/0.1781, allocations: 0 / 473.9 MB, free: 132 kB / 314.7 MB Notification: Performance of Templates: time 0.01258/0.1907, allocations: 7.089 MB / 481 MB, free: 9.016 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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