Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001439/0.001439, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.001564/0.001564, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 177 MB / 204.5 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.847e-05/2.987e-05, allocations: 6.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003899/0.003929, allocations: 2.083 MB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.00544, allocations: 0.6548 MB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.005617, allocations: 4 kB / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.005888, allocations: 47.58 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.006089, allocations: 51.62 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.006495, allocations: 131.7 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.006971, allocations: 347.1 kB / 275.5 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.007117, allocations: 44.56 kB / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004663/0.007583, allocations: 207.5 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.00783, allocations: 131.6 kB / 275.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.007893, allocations: 28 kB / 275.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.853e-05/0.007952, allocations: 36 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.008089, allocations: 87.7 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.008226, allocations: 91.78 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.008691, allocations: 311 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.008693, allocations: 0 / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.008694, allocations: 0 / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.008701, allocations: 0 / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001288/0.009989, allocations: 0.5051 MB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.01004, allocations: 15.98 kB / 276.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.01018, allocations: 56.8 kB / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.01059, allocations: 193.9 kB / 277.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003661/0.01096, allocations: 351.8 kB / 277.5 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.746e-05/0.01102, allocations: 24.38 kB / 277.5 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009421/0.01197, allocations: 370.9 kB / 277.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.01199, allocations: 7.953 kB / 277.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.01202, allocations: 8 kB / 277.9 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.01203, allocations: 4 kB / 277.9 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.0136, allocations: 0.4976 MB / 278.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.01551, allocations: 0.853 MB / 279.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.01663, allocations: 306.3 kB / 279.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006333/0.01726, allocations: 172.7 kB / 279.7 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.01729, allocations: 4 kB / 279.7 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.01733, allocations: 38.56 kB / 279.8 MB, free: 10.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.393e-06/0.01733, allocations: 0 / 279.8 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.02789/0.04522, allocations: 5.688 MB / 285.5 MB, free: 4.262 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.04528, allocations: 59.91 kB / 285.5 MB, free: 4.191 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.04563, allocations: 202.4 kB / 285.7 MB, free: 3.984 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.689e-05/0.0457, allocations: 33.7 kB / 285.8 MB, free: 3.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.04586, allocations: 156.9 kB / 285.9 MB, free: 3.789 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/0.04608, allocations: 182.5 kB / 286.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004563/0.04654, allocations: 90.34 kB / 286.2 MB, free: 3.516 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002286/0.04677, allocations: 338.8 kB / 286.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.04823, allocations: 477 kB / 287 MB, free: 2.707 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.04968, allocations: 0.5186 MB / 287.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002622/0.0523, allocations: 0.8142 MB / 288.3 MB, free: 1.348 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.05231, allocations: 4 kB / 288.3 MB, free: 1.344 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003228/0.05554, allocations: 1.02 MB / 289.3 MB, free: 328 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.05556, allocations: 4 kB / 289.3 MB, free: 324 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.05558, allocations: 7.938 kB / 289.3 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/0.05561, allocations: 4 kB / 289.3 MB, free: 312 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009979/0.05661, allocations: 167.7 kB / 289.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.05663, allocations: 4 kB / 289.5 MB, free: 140 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007478/0.05737, allocations: 95.84 kB / 289.6 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.469e-05/0.05744, allocations: 16 kB / 289.6 MB, free: 28 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.1093/0.1667, allocations: 157.7 kB / 289.8 MB, free: 29.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.1669, allocations: 43.88 kB / 289.8 MB, free: 29.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.167, allocations: 49.33 kB / 289.9 MB, free: 29.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.167, allocations: 7.188 kB / 289.9 MB, free: 29.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.167, allocations: 0 / 289.9 MB, free: 29.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.167, allocations: 3.781 kB / 289.9 MB, free: 29.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003692/0.1707, allocations: 1.71 MB / 291.6 MB, free: 28.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.1707, allocations: 10.03 kB / 291.6 MB, free: 28.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006051/0.1713, allocations: 145 kB / 291.7 MB, free: 28.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/0.1714, allocations: 11.38 kB / 291.7 MB, free: 28.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.1714, allocations: 24.41 kB / 291.8 MB, free: 28.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.17e-05/0.1714, allocations: 16.36 kB / 291.8 MB, free: 28.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.1714, allocations: 9.578 kB / 291.8 MB, free: 28.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.1739, allocations: 1.251 MB / 293 MB, free: 27.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.1741, allocations: 72.75 kB / 293.1 MB, free: 27.95 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.928e-05/0.1741, allocations: 22.55 kB / 293.1 MB, free: 27.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005213/0.1747, allocations: 68.94 kB / 293.2 MB, free: 27.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.1749, allocations: 91.09 kB / 293.3 MB, free: 27.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/0.1749, allocations: 24.05 kB / 293.3 MB, free: 27.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001398/0.175, allocations: 162.8 kB / 293.5 MB, free: 27.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.175, allocations: 0 / 293.5 MB, free: 27.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004662/0.1755, allocations: 93.66 kB / 293.6 MB, free: 27.79 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001363/0.1756, allocations: 125.9 kB / 293.7 MB, free: 27.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.1777, allocations: 0.7969 MB / 294.5 MB, free: 27.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1778, allocations: 1.219 kB / 294.5 MB, free: 27.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008798/0.1786, allocations: 326 kB / 294.8 MB, free: 27.37 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.1792, allocations: 89.17 kB / 294.9 MB, free: 27.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.181, allocations: 0.9606 MB / 295.9 MB, free: 26.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001557/0.1812, allocations: 174.2 kB / 296 MB, free: 26.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003612/0.1815, allocations: 82.25 kB / 296.1 MB, free: 26.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.1817, allocations: 38.14 kB / 296.1 MB, free: 26.55 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.1817, allocations: 0 / 296.1 MB, free: 26.55 MB / 266.7 MB Notification: Performance of Templates: time 0.009104/0.1909, allocations: 6.105 MB / 302.2 MB, free: 24.35 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 4.5347788910148665]