Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002364/0.002364, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.02e-05/3.178e-05, allocations: 2.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003913/0.003945, allocations: 2.091 MB / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.005442, allocations: 0.647 MB / 275 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001687/0.00561, allocations: 7.938 kB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.005919, allocations: 47.64 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.006129, allocations: 55.56 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004286/0.006558, allocations: 123.7 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004916/0.007049, allocations: 351.1 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.007223, allocations: 44.55 kB / 275.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005029/0.007726, allocations: 207.5 kB / 275.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.007975, allocations: 135.6 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.864e-05/0.008043, allocations: 28 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.816e-05/0.008101, allocations: 32 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.008229, allocations: 87.7 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.008373, allocations: 91.8 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.008827, allocations: 315 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.00883, allocations: 0 / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.008831, allocations: 0 / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.00884, allocations: 0 / 276.5 MB, free: 13.6 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.001491/0.01033, allocations: 0.5051 MB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.01038, allocations: 8.031 kB / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.01052, allocations: 56.8 kB / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.01096, allocations: 197.9 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003733/0.01133, allocations: 339.8 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.128e-05/0.0114, allocations: 28.31 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009718/0.01237, allocations: 374.9 kB / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.01239, allocations: 7.938 kB / 278 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.01243, allocations: 12 kB / 278 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.01244, allocations: 4 kB / 278 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.01393, allocations: 497.6 kB / 278.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.01583, allocations: 0.8568 MB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.01695, allocations: 306.4 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005719/0.01752, allocations: 164.7 kB / 279.8 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.01756, allocations: 7.938 kB / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.01759, allocations: 38.56 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.884e-06/0.01759, allocations: 0 / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.02928/0.04688, allocations: 5.683 MB / 285.6 MB, free: 4.301 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.04693, allocations: 59.84 kB / 285.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003275/0.04726, allocations: 210.9 kB / 285.8 MB, free: 4.016 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.62e-05/0.04732, allocations: 41.7 kB / 285.9 MB, free: 3.969 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.04745, allocations: 148.9 kB / 286 MB, free: 3.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.04765, allocations: 178.5 kB / 286.2 MB, free: 3.645 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.04791, allocations: 90.34 kB / 286.3 MB, free: 3.551 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.04811, allocations: 342.8 kB / 286.6 MB, free: 3.207 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.04959, allocations: 477 kB / 287.1 MB, free: 2.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002068/0.05165, allocations: 0.5147 MB / 287.6 MB, free: 2.211 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003285/0.05494, allocations: 0.8181 MB / 288.4 MB, free: 1.379 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.05494, allocations: 0 / 288.4 MB, free: 1.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00313/0.05807, allocations: 1.016 MB / 289.4 MB, free: 364 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.05809, allocations: 4.125 kB / 289.4 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.0581, allocations: 8 kB / 289.4 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.05813, allocations: 7.938 kB / 289.5 MB, free: 344 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.05916, allocations: 171.7 kB / 289.6 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.05918, allocations: 3.984 kB / 289.6 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007429/0.05992, allocations: 91.83 kB / 289.7 MB, free: 76 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.944e-05/0.05998, allocations: 16 kB / 289.7 MB, free: 60 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.1055/0.1655, allocations: 162 kB / 289.9 MB, free: 29.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.1656, allocations: 43.72 kB / 289.9 MB, free: 29.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.1658, allocations: 48.66 kB / 290 MB, free: 29.28 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.1658, allocations: 5.188 kB / 290 MB, free: 29.28 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.1658, allocations: 1.781 kB / 290 MB, free: 29.28 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.1658, allocations: 1.969 kB / 290 MB, free: 29.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.1697, allocations: 1.704 MB / 291.7 MB, free: 28.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.1698, allocations: 7 kB / 291.7 MB, free: 28.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006339/0.1704, allocations: 146.3 kB / 291.8 MB, free: 28.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/0.1704, allocations: 14.69 kB / 291.9 MB, free: 28.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-05/0.1704, allocations: 20.94 kB / 291.9 MB, free: 28.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.387e-05/0.1705, allocations: 16.11 kB / 291.9 MB, free: 28.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/0.1705, allocations: 12.44 kB / 291.9 MB, free: 28.67 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00283/0.1733, allocations: 1.254 MB / 293.2 MB, free: 28.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.1735, allocations: 64 kB / 293.2 MB, free: 27.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.763e-05/0.1735, allocations: 24.48 kB / 293.2 MB, free: 27.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005504/0.1741, allocations: 76.09 kB / 293.3 MB, free: 27.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.1743, allocations: 92.98 kB / 293.4 MB, free: 27.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.273e-05/0.1743, allocations: 24.48 kB / 293.4 MB, free: 27.94 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.1745, allocations: 153.1 kB / 293.6 MB, free: 27.85 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1745, allocations: 1.188 kB / 293.6 MB, free: 27.85 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005132/0.175, allocations: 97.75 kB / 293.7 MB, free: 27.83 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.0001426/0.1752, allocations: 121.9 kB / 293.8 MB, free: 27.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.1775, allocations: 0.8018 MB / 294.6 MB, free: 27.49 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.1775, allocations: 2.531 kB / 294.6 MB, free: 27.49 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009598/0.1785, allocations: 326.8 kB / 294.9 MB, free: 27.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006358/0.1791, allocations: 86.34 kB / 295 MB, free: 27.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.181, allocations: 0.9651 MB / 296 MB, free: 26.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/0.1812, allocations: 170.2 kB / 296.1 MB, free: 26.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003875/0.1816, allocations: 83.91 kB / 296.2 MB, free: 26.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.1818, allocations: 36.36 kB / 296.3 MB, free: 26.58 MB / 266.7 MB Notification: Performance of SimCode: time 1.964e-06/0.1818, allocations: 0.6562 kB / 296.3 MB, free: 26.58 MB / 266.7 MB Notification: Performance of Templates: time 0.01063/0.1924, allocations: 6.112 MB / 302.4 MB, free: 24.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.495093774050474]