Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001096/0.001096, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001385/0.001385, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9851/0.9851, allocations: 173.4 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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.SubClocked,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.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 3.938 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.782e-05/2.955e-05, allocations: 6.25 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003317/0.003347, allocations: 2.354 MB / 270.3 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.004806, allocations: 0.7948 MB / 271.1 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.005, allocations: 7.938 kB / 271.1 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.005292, allocations: 55.5 kB / 271.2 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.005492, allocations: 63.44 kB / 271.3 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.005946, allocations: 179.5 kB / 271.4 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000404/0.00635, allocations: 391.5 kB / 271.8 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.006509, allocations: 68.34 kB / 271.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002772/0.006786, allocations: 235.5 kB / 272.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.006978, allocations: 143.6 kB / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.204e-05/0.00703, allocations: 36 kB / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.008e-05/0.00707, allocations: 36 kB / 272.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.839e-05/0.007159, allocations: 95.69 kB / 272.4 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.438e-05/0.007243, allocations: 103.7 kB / 272.5 MB, free: 1.902 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002874/0.00753, allocations: 271 kB / 272.8 MB, free: 1.637 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.007533, allocations: 0 / 272.8 MB, free: 1.637 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.007534, allocations: 4 kB / 272.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.00754, allocations: 0 / 272.8 MB, free: 1.633 MB / 250.7 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.0008109/0.008351, allocations: 0.6365 MB / 273.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.008387, allocations: 12.03 kB / 273.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.386e-05/0.008481, allocations: 68.75 kB / 273.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.008747, allocations: 220.5 kB / 273.7 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.008938, allocations: 339.9 kB / 274 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.008985, allocations: 36.36 kB / 274.1 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.009647, allocations: 457.5 kB / 274.5 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.009663, allocations: 4.141 kB / 274.5 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.009691, allocations: 16.12 kB / 274.5 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.009702, allocations: 8 kB / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.01008, allocations: 243.6 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009536/0.01104, allocations: 0.9212 MB / 275.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.01162, allocations: 336.6 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.0118, allocations: 154.7 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.01183, allocations: 11.94 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.01186, allocations: 49.33 kB / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.813e-06/0.01186, allocations: 0 / 276.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006865/0.01873, allocations: 2.644 MB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.0188, allocations: 149.4 kB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.01895, allocations: 238.6 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/0.01901, allocations: 41.7 kB / 279.3 MB, free: 10.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.618e-05/0.01909, allocations: 188.5 kB / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.01922, allocations: 194.3 kB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.0194, allocations: 99.95 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.01953, allocations: 0.5156 MB / 280.3 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004255/0.01995, allocations: 317.2 kB / 280.6 MB, free: 9.398 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.02043, allocations: 436 kB / 281 MB, free: 8.934 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007776/0.02121, allocations: 0.6396 MB / 281.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.02121, allocations: 4 kB / 281.7 MB, free: 8.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001046/0.02226, allocations: 0.7824 MB / 282.5 MB, free: 7.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.02227, allocations: 4 kB / 282.5 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.02228, allocations: 4 kB / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.0223, allocations: 4 kB / 282.5 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005778/0.02287, allocations: 163.7 kB / 282.6 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.02288, allocations: 4 kB / 282.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.02325, allocations: 80.09 kB / 282.7 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.473e-05/0.0233, allocations: 16 kB / 282.7 MB, free: 7.191 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0001886/0.02349, allocations: 200.3 kB / 282.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.02371, allocations: 161.4 kB / 283.1 MB, free: 6.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.87e-05/0.02378, allocations: 63.3 kB / 283.1 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.02379, allocations: 8 kB / 283.2 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.0238, allocations: 4 kB / 283.2 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.0238, allocations: 7.922 kB / 283.2 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.0257, allocations: 1.507 MB / 284.7 MB, free: 5.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.974e-06/0.0257, allocations: 12 kB / 284.7 MB, free: 5.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/0.02607, allocations: 167.7 kB / 284.8 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.02608, allocations: 12 kB / 284.9 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.442e-05/0.02612, allocations: 24.56 kB / 284.9 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.275e-05/0.02613, allocations: 27.92 kB / 284.9 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.447e-06/0.02614, allocations: 15.94 kB / 284.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.02719, allocations: 1.221 MB / 286.1 MB, free: 3.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.02731, allocations: 91.69 kB / 286.2 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.697e-05/0.02736, allocations: 28.03 kB / 286.3 MB, free: 3.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.02762, allocations: 59.94 kB / 286.3 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.02775, allocations: 87.64 kB / 286.4 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.02778, allocations: 35.94 kB / 286.4 MB, free: 3.043 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.283e-05/0.02787, allocations: 177 kB / 286.6 MB, free: 2.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02787, allocations: 0 / 286.6 MB, free: 2.871 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004019/0.02827, allocations: 112 kB / 286.7 MB, free: 2.762 MB / 266.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001291/0.0284, allocations: 142.9 kB / 286.9 MB, free: 2.609 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007856/0.02918, allocations: 0.5741 MB / 287.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.02919, allocations: 0 / 287.4 MB, free: 2.035 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.02941, allocations: 173.5 kB / 287.6 MB, free: 1.863 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006055/0.03001, allocations: 139.2 kB / 287.7 MB, free: 1.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.03152, allocations: 1.15 MB / 288.9 MB, free: 372 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.812e-05/0.03162, allocations: 126.8 kB / 289 MB, free: 228 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002693/0.03189, allocations: 87.17 kB / 289.1 MB, free: 144 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.0321, allocations: 40.5 kB / 289.1 MB, free: 100 kB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.0321, allocations: 0 / 289.1 MB, free: 100 kB / 266.7 MB Notification: Performance of Templates: time 0.011/0.0431, allocations: 9.27 MB / 298.4 MB, free: 6.895 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1940209032036364]