Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 116.7 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.001329, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.466/1.466, allocations: 230.4 MB / 255.4 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 75.81 kB / 374.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.12, allocations: 53.31 MB / 428 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004295/0.1243, allocations: 2.38 MB / 430.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.1262, allocations: 0.8455 MB / 431.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.1263, allocations: 7.938 kB / 431.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003365/0.1267, allocations: 59.56 kB / 431.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.1269, allocations: 59.44 kB / 431.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.1274, allocations: 175.6 kB / 431.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.1279, allocations: 383.6 kB / 431.9 MB, free: 460 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.1281, allocations: 71.86 kB / 432 MB, free: 384 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.1285, allocations: 171.4 kB / 432.2 MB, free: 212 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.1288, allocations: 179.3 kB / 432.3 MB, free: 32 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.767e-05/0.1288, allocations: 32 kB / 432.4 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2503/0.3791, allocations: 33.89 kB / 432.4 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.3793, allocations: 99.14 kB / 432.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002377/0.3796, allocations: 144.6 kB / 432.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005252/0.3801, allocations: 335.3 kB / 433 MB, free: 8.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3801, allocations: 0.9062 kB / 433 MB, free: 8.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3801, allocations: 0.5938 kB / 433 MB, free: 8.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3801, allocations: 0 / 433 MB, free: 8.961 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001194/0.3813, allocations: 0.6291 MB / 433.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3814, allocations: 9.406 kB / 433.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.3815, allocations: 42.08 kB / 433.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004313/0.3819, allocations: 278.6 kB / 433.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.3821, allocations: 137.2 kB / 434.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.259e-05/0.3822, allocations: 36.22 kB / 434.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.3834, allocations: 0.5729 MB / 434.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.3834, allocations: 0 / 434.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.954e-05/0.3834, allocations: 14.94 kB / 434.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.3834, allocations: 6.281 kB / 434.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.3847, allocations: 0.5031 MB / 435.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.3861, allocations: 1.014 MB / 436.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.3878, allocations: 479.4 kB / 436.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006223/0.3884, allocations: 233.7 kB / 436.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.434e-05/0.3885, allocations: 6.547 kB / 436.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.3885, allocations: 44.14 kB / 437 MB, free: 7.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.973e-06/0.3885, allocations: 0 / 437 MB, free: 7.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03997/0.4284, allocations: 5.733 MB / 442.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/0.4285, allocations: 147.5 kB / 442.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.4288, allocations: 200.4 kB / 443 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.713e-05/0.4289, allocations: 36.58 kB / 443.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.586e-05/0.4289, allocations: 142.8 kB / 443.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.4291, allocations: 201.1 kB / 443.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/0.4295, allocations: 113.2 kB / 443.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.786e-05/0.4296, allocations: 348 kB / 443.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.4312, allocations: 0.6167 MB / 444.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.4328, allocations: 0.7941 MB / 445.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00305/0.4359, allocations: 1.253 MB / 446.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.4359, allocations: 2.562 kB / 446.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003642/0.4395, allocations: 1.39 MB / 447.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.4396, allocations: 15.22 kB / 447.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/0.4396, allocations: 5.562 kB / 447.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.576e-05/0.4396, allocations: 10.95 kB / 447.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.441, allocations: 212.5 kB / 448.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/0.441, allocations: 8.875 kB / 448.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009624/0.442, allocations: 107.6 kB / 448.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.472e-05/0.4421, allocations: 27.52 kB / 448.3 MB, free: 3.594 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.0003445/0.4424, allocations: 183.1 kB / 448.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003097/0.4427, allocations: 164.2 kB / 448.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.4429, allocations: 65.36 kB / 448.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.4429, allocations: 8.25 kB / 448.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.4429, allocations: 2.062 kB / 448.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.4429, allocations: 8.469 kB / 448.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004624/0.4475, allocations: 2.161 MB / 450.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/0.4476, allocations: 9.625 kB / 450.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007539/0.4483, allocations: 184.5 kB / 451.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.041e-05/0.4483, allocations: 14.59 kB / 451.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-05/0.4484, allocations: 26.56 kB / 451.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.111e-05/0.4484, allocations: 19.62 kB / 451.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.541e-05/0.4484, allocations: 20.09 kB / 451.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002994/0.4514, allocations: 1.56 MB / 452.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.4516, allocations: 160.1 kB / 452.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.369e-05/0.4517, allocations: 39.77 kB / 452.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005751/0.4523, allocations: 75.34 kB / 453 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.4525, allocations: 91.55 kB / 453.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.638e-05/0.4525, allocations: 37.03 kB / 453.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001352/0.4527, allocations: 138.2 kB / 453.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4527, allocations: 0 / 453.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007878/0.4534, allocations: 122.2 kB / 453.3 MB, free: 0.5938 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.0002159/0.4537, allocations: 145.7 kB / 453.5 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00295/0.4566, allocations: 1.031 MB / 454.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.4566, allocations: 1.125 kB / 454.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.4577, allocations: 335.2 kB / 454.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009504/0.4586, allocations: 123 kB / 455 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/0.4614, allocations: 1.202 MB / 456.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005627/0.4619, allocations: 0.8171 MB / 457 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003734/0.4623, allocations: 43.08 kB / 457 MB, free: 13.98 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4623, allocations: 0 / 457 MB, free: 13.98 MB / 366.1 MB Notification: Performance of Templates: time 0.01339/0.4757, allocations: 7.231 MB / 464.3 MB, free: 10.2 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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: 7.722931199008599]