Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 112.9 kB / 18.41 MB, free: 4.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 190.9 kB / 21.35 MB, free: 1.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 247 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 51.91 kB / 358.6 MB, free: 8.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1155, allocations: 49.43 MB / 408.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004198/0.1197, allocations: 2.33 MB / 410.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.1215, allocations: 0.7677 MB / 411.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001823/0.1217, allocations: 7.938 kB / 411.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003341/0.122, allocations: 47.64 kB / 411.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.1223, allocations: 59.48 kB / 411.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.1228, allocations: 167.4 kB / 411.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.1233, allocations: 375.6 kB / 411.8 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.1236, allocations: 99.31 kB / 411.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002593/0.1238, allocations: 155.5 kB / 412.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002865/0.1241, allocations: 179.3 kB / 412.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.174e-05/0.1242, allocations: 32 kB / 412.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.677e-05/0.1243, allocations: 32 kB / 412.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.1244, allocations: 91.73 kB / 412.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.1246, allocations: 147.2 kB / 412.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.125, allocations: 318.7 kB / 412.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1251, allocations: 4 kB / 412.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1251, allocations: 0 / 412.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.1251, allocations: 4 kB / 412.9 MB, free: 2.031 MB / 334.1 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.001351/0.1264, allocations: 0.6197 MB / 413.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.1265, allocations: 15.88 kB / 413.5 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.1266, allocations: 36.75 kB / 413.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005389/0.1272, allocations: 264.5 kB / 413.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002328/0.1274, allocations: 142.2 kB / 413.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.492e-05/0.1275, allocations: 28.36 kB / 413.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.1288, allocations: 0.5437 MB / 414.5 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.1288, allocations: 3.938 kB / 414.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.678e-05/0.1289, allocations: 12 kB / 414.5 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.1289, allocations: 8 kB / 414.5 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.1304, allocations: 0.5153 MB / 415 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.1321, allocations: 1.018 MB / 416 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.1339, allocations: 0.4985 MB / 416.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006959/0.1346, allocations: 259.4 kB / 416.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.143e-05/0.1346, allocations: 4 kB / 416.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.335e-05/0.1347, allocations: 46.55 kB / 416.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.356e-06/0.1347, allocations: 3.938 kB / 416.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04073/0.1754, allocations: 5.718 MB / 422.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.1756, allocations: 152.9 kB / 422.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.1759, allocations: 191.2 kB / 422.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.639e-05/0.176, allocations: 37.7 kB / 422.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.1761, allocations: 153.7 kB / 423.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.1764, allocations: 202.3 kB / 423.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003212/0.1767, allocations: 114.6 kB / 423.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1769, allocations: 346.8 kB / 423.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.1786, allocations: 0.6188 MB / 424.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.1806, allocations: 0.7963 MB / 425.2 MB, free: 5.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003407/0.184, allocations: 1.247 MB / 426.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.184, allocations: 4 kB / 426.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004006/0.1881, allocations: 1.386 MB / 427.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.1881, allocations: 11.98 kB / 427.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.1881, allocations: 8 kB / 427.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/0.1882, allocations: 8 kB / 427.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.1896, allocations: 215.7 kB / 428 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.497e-05/0.1896, allocations: 12.25 kB / 428 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.1907, allocations: 103.8 kB / 428.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.789e-05/0.1908, allocations: 28 kB / 428.2 MB, free: 2.203 MB / 350.1 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.noWphase,kinematicPTP.moving[1]) * 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.0003477/0.1911, allocations: 185.6 kB / 428.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.1915, allocations: 157.4 kB / 428.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001871/0.1917, allocations: 59.31 kB / 428.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.1917, allocations: 8 kB / 428.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.1917, allocations: 0 / 428.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.1917, allocations: 7.984 kB / 428.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2296/0.4213, allocations: 2.162 MB / 430.7 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/0.4214, allocations: 8.25 kB / 430.8 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007832/0.4221, allocations: 192.6 kB / 430.9 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.537e-05/0.4222, allocations: 13.09 kB / 431 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.032e-05/0.4222, allocations: 24.97 kB / 431 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.782e-05/0.4223, allocations: 17.8 kB / 431 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.39e-05/0.4223, allocations: 17.12 kB / 431 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003065/0.4253, allocations: 1.561 MB / 432.6 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001922/0.4256, allocations: 160.1 kB / 432.7 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.016e-05/0.4256, allocations: 33.67 kB / 432.8 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006058/0.4263, allocations: 73.7 kB / 432.8 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002131/0.4265, allocations: 94.83 kB / 432.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.615e-05/0.4265, allocations: 31.94 kB / 433 MB, free: 22.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001235/0.4267, allocations: 140.2 kB / 433.1 MB, free: 22.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4267, allocations: 0 / 433.1 MB, free: 22.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006653/0.4273, allocations: 120.5 kB / 433.2 MB, free: 22.24 MB / 350.1 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.0001543/0.4275, allocations: 144.6 kB / 433.4 MB, free: 22.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002995/0.4305, allocations: 1.143 MB / 434.5 MB, free: 22.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/0.4305, allocations: 2.344 kB / 434.5 MB, free: 22.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.4318, allocations: 343.6 kB / 434.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.4328, allocations: 130.2 kB / 435 MB, free: 22.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.4353, allocations: 1.212 MB / 436.2 MB, free: 21.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.4357, allocations: 0.8091 MB / 437 MB, free: 20.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.4361, allocations: 44.52 kB / 437 MB, free: 20.6 MB / 350.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4361, allocations: 0 / 437 MB, free: 20.6 MB / 350.1 MB Notification: Performance of Templates: time 0.01411/0.4502, allocations: 7.183 MB / 444.2 MB, free: 19.48 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.132985720061697]