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.001318/0.001318, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001444/0.001444, allocations: 187.7 kB / 23.7 MB, free: 4.191 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.424/1.424, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.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.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 0.001594/0.001594, allocations: 47.92 kB / 370.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2773, allocations: 52.19 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004374/0.2817, allocations: 2.26 MB / 425.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.2832, allocations: 0.7638 MB / 426.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.2833, allocations: 11.94 kB / 426.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.2836, allocations: 55.55 kB / 426.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.2838, allocations: 63.52 kB / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.2844, allocations: 175.6 kB / 426.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004341/0.2848, allocations: 379.6 kB / 426.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.285, allocations: 76.28 kB / 426.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.2853, allocations: 159.5 kB / 427 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/0.2855, allocations: 163.3 kB / 427.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.028e-05/0.2856, allocations: 36 kB / 427.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.049e-05/0.2856, allocations: 36 kB / 427.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.2858, allocations: 103.7 kB / 427.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.2859, allocations: 127.4 kB / 427.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004026/0.2863, allocations: 344.8 kB / 427.8 MB, free: 9.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2863, allocations: 4 kB / 427.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2863, allocations: 0 / 427.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2863, allocations: 0 / 427.8 MB, free: 9.719 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001246/0.2876, allocations: 0.5561 MB / 428.3 MB, free: 9.133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2876, allocations: 8.031 kB / 428.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.359e-05/0.2877, allocations: 40.75 kB / 428.4 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.2881, allocations: 218.5 kB / 428.6 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003399/0.2884, allocations: 351.9 kB / 428.9 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.515e-05/0.2885, allocations: 32.38 kB / 429 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.2898, allocations: 0.57 MB / 429.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.2898, allocations: 3.953 kB / 429.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/0.2899, allocations: 12 kB / 429.6 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.2899, allocations: 8 kB / 429.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.2915, allocations: 0.5113 MB / 430.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.2931, allocations: 0.8406 MB / 430.9 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.2947, allocations: 478.5 kB / 431.4 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006889/0.2954, allocations: 235.4 kB / 431.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.615e-05/0.2954, allocations: 8.406 kB / 431.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.2955, allocations: 42.5 kB / 431.7 MB, free: 5.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 3.086e-06/0.2955, allocations: 3.938 kB / 431.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.03959/0.3351, allocations: 5.748 MB / 437.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.3352, allocations: 148.9 kB / 437.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.3355, allocations: 216.3 kB / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.302e-05/0.3355, allocations: 37.7 kB / 437.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3357, allocations: 137.8 kB / 437.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.3359, allocations: 206.3 kB / 438.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/0.3362, allocations: 114.6 kB / 438.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3363, allocations: 350.7 kB / 438.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001775/0.3381, allocations: 0.6227 MB / 439.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/0.34, allocations: 0.8003 MB / 440 MB, free: 13.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003374/0.3434, allocations: 1.26 MB / 441.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.718e-06/0.3434, allocations: 4 kB / 441.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003867/0.3473, allocations: 1.399 MB / 442.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.3473, allocations: 8 kB / 442.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.3473, allocations: 11.94 kB / 442.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.425e-05/0.3473, allocations: 11.98 kB / 442.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3487, allocations: 203.7 kB / 442.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/0.3488, allocations: 11.94 kB / 442.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009925/0.3497, allocations: 115.7 kB / 443 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.36e-05/0.3498, allocations: 24 kB / 443.1 MB, free: 9.934 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: 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 (84): * Single equations (assignments): 84 * 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.0003507/0.3502, allocations: 185.6 kB / 443.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003221/0.3505, allocations: 157.7 kB / 443.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.3507, allocations: 63.31 kB / 443.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3507, allocations: 8 kB / 443.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.3507, allocations: 8.078 kB / 443.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.3507, allocations: 7.875 kB / 443.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005019/0.3557, allocations: 1.91 MB / 445.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.3557, allocations: 12 kB / 445.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007743/0.3565, allocations: 179.7 kB / 445.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-05/0.3565, allocations: 12.5 kB / 445.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.536e-05/0.3566, allocations: 32 kB / 445.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.99e-05/0.3566, allocations: 23.81 kB / 445.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/0.3566, allocations: 19.88 kB / 445.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003506/0.3601, allocations: 1.566 MB / 447.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002346/0.3604, allocations: 99.61 kB / 447.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.535e-05/0.3604, allocations: 24 kB / 447.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006419/0.3611, allocations: 91.91 kB / 447.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.3613, allocations: 95.64 kB / 447.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/0.3613, allocations: 32 kB / 447.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001425/0.3615, allocations: 149.2 kB / 447.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3615, allocations: 0 / 447.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006861/0.3622, allocations: 124 kB / 447.8 MB, free: 4.836 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: 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.0001805/0.3624, allocations: 138.9 kB / 448 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003078/0.3654, allocations: 1.043 MB / 449 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3654, allocations: 0 / 449 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.3665, allocations: 338 kB / 449.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009128/0.3675, allocations: 136.1 kB / 449.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.37, allocations: 1.186 MB / 450.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3703, allocations: 211.3 kB / 450.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005121/0.3708, allocations: 103.3 kB / 451 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.3711, allocations: 35.44 kB / 451 MB, free: 1.477 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3711, allocations: 0 / 451 MB, free: 1.477 MB / 350.1 MB Notification: Performance of Templates: time 0.01533/0.3864, allocations: 9.208 MB / 460.2 MB, free: 8.336 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.894203303381801]