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.001025/0.001025, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.001011/0.001011, allocations: 145.1 kB / 24.54 MB, free: 36 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.966/0.966, allocations: 173.3 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.373e-06/1.373e-06, allocations: 3.938 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.165e-05/2.302e-05, allocations: 2.312 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002807/0.002831, allocations: 2.365 MB / 270.3 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.004028, allocations: 0.7948 MB / 271.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.004161, allocations: 7.938 kB / 271.1 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000279/0.00444, allocations: 55.56 kB / 271.2 MB, free: 3.223 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.004639, allocations: 67.38 kB / 271.3 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004574/0.005097, allocations: 175.5 kB / 271.4 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.005413, allocations: 391.5 kB / 271.8 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.005564, allocations: 64.34 kB / 271.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.005787, allocations: 235.5 kB / 272.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.005964, allocations: 143.6 kB / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.006011, allocations: 36 kB / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.859e-05/0.00605, allocations: 36 kB / 272.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.033e-05/0.00614, allocations: 103.7 kB / 272.4 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.699e-05/0.006227, allocations: 103.7 kB / 272.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.00652, allocations: 263 kB / 272.8 MB, free: 1.637 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.006523, allocations: 4 kB / 272.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006524, allocations: 0 / 272.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.006531, 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.0008144/0.007345, allocations: 0.6443 MB / 273.4 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.007378, allocations: 8.031 kB / 273.4 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.401e-05/0.007462, allocations: 68.75 kB / 273.5 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.007717, allocations: 220.6 kB / 273.7 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.007925, allocations: 343.9 kB / 274 MB, free: 236 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.119e-05/0.007976, allocations: 28.38 kB / 274.1 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000634/0.00861, allocations: 461.5 kB / 274.5 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.008628, allocations: 8.125 kB / 274.5 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.008656, allocations: 20.11 kB / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.008667, allocations: 8 kB / 274.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.009043, allocations: 231.7 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008883/0.009932, allocations: 0.9329 MB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005725/0.0105, allocations: 332.7 kB / 276 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.01068, allocations: 150.9 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.01072, allocations: 15.98 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.01076, allocations: 49.31 kB / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.964e-06/0.01077, allocations: 0 / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006987/0.01775, allocations: 2.637 MB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.01783, allocations: 149.3 kB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.01797, allocations: 242.6 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.01802, allocations: 37.7 kB / 279.3 MB, free: 10.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.716e-05/0.0181, allocations: 192.4 kB / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.01822, allocations: 198.3 kB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001831/0.01841, allocations: 103.9 kB / 279.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.01852, allocations: 0.5117 MB / 280.3 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004153/0.01894, allocations: 317.2 kB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004431/0.01938, allocations: 436 kB / 281 MB, free: 8.926 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007498/0.02013, allocations: 0.6396 MB / 281.7 MB, free: 8.246 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.02013, allocations: 0 / 281.7 MB, free: 8.246 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00102/0.02115, allocations: 0.7863 MB / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.02117, allocations: 4 kB / 282.5 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.02118, allocations: 7.984 kB / 282.5 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.0212, allocations: 4 kB / 282.5 MB, free: 7.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.02177, allocations: 159.8 kB / 282.6 MB, free: 7.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.02178, allocations: 4 kB / 282.6 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/0.02214, allocations: 80.12 kB / 282.7 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.37e-05/0.02218, allocations: 16 kB / 282.7 MB, free: 7.184 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.0001673/0.02235, allocations: 204.2 kB / 282.9 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.02255, allocations: 153.4 kB / 283.1 MB, free: 6.816 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.667e-05/0.02263, allocations: 59.31 kB / 283.1 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.02264, allocations: 8 kB / 283.2 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.02266, allocations: 4 kB / 283.2 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.02266, allocations: 7.969 kB / 283.2 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.02452, allocations: 1.507 MB / 284.7 MB, free: 5.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.02453, allocations: 8 kB / 284.7 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.02488, allocations: 168.5 kB / 284.8 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.02488, allocations: 12 kB / 284.9 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.02492, allocations: 32 kB / 284.9 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.37e-05/0.02493, allocations: 23.92 kB / 284.9 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.02494, allocations: 15.94 kB / 284.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.02596, allocations: 1.229 MB / 286.2 MB, free: 3.332 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.02608, allocations: 83.7 kB / 286.2 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.228e-05/0.02612, allocations: 31.98 kB / 286.3 MB, free: 3.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.02637, allocations: 55.95 kB / 286.3 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.02649, allocations: 87.58 kB / 286.4 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.02652, allocations: 43.92 kB / 286.4 MB, free: 3.035 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.183e-05/0.02659, allocations: 169.1 kB / 286.6 MB, free: 2.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02659, allocations: 0 / 286.6 MB, free: 2.871 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003697/0.02696, allocations: 116 kB / 286.7 MB, free: 2.758 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.0001066/0.02707, allocations: 143 kB / 286.9 MB, free: 2.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000738/0.02781, allocations: 0.578 MB / 287.4 MB, free: 2.027 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.02781, allocations: 0 / 287.4 MB, free: 2.027 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.02802, allocations: 166.9 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.000551/0.02857, allocations: 149.5 kB / 287.8 MB, free: 1.719 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.03, allocations: 1.143 MB / 288.9 MB, free: 368 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.923e-05/0.03008, allocations: 134.8 kB / 289 MB, free: 216 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002416/0.03033, allocations: 83.19 kB / 289.1 MB, free: 136 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.03052, allocations: 40.5 kB / 289.2 MB, free: 92 kB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.03052, allocations: 0 / 289.2 MB, free: 92 kB / 266.7 MB Notification: Performance of Templates: time 0.009137/0.03966, allocations: 8.795 MB / 297.9 MB, free: 7.355 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.077281943988055]