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.002325/0.002325, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.002693/0.002693, allocations: 149.1 kB / 24.26 MB, free: 168 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 1.508/1.508, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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 1.764e-06/1.764e-06, allocations: 0 / 267.3 MB, free: 6.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.965e-05/3.141e-05, allocations: 2.312 kB / 267.3 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004256/0.004288, allocations: 2.324 MB / 269.6 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.005972, allocations: 0.7947 MB / 270.4 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.006109, allocations: 7.938 kB / 270.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.006392, allocations: 51.58 kB / 270.5 MB, free: 3.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.006615, allocations: 63.44 kB / 270.5 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.007112, allocations: 175.4 kB / 270.7 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.007594, allocations: 391.5 kB / 271.1 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.007779, allocations: 72.33 kB / 271.2 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.008123, allocations: 231.5 kB / 271.4 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.008373, allocations: 147.6 kB / 271.5 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.718e-05/0.00845, allocations: 36 kB / 271.6 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.943e-05/0.00851, allocations: 32 kB / 271.6 MB, free: 2.445 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.008641, allocations: 99.64 kB / 271.7 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.008779, allocations: 103.8 kB / 271.8 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.009274, allocations: 362.8 kB / 272.1 MB, free: 1.891 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.009277, allocations: 0 / 272.1 MB, free: 1.891 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.009279, allocations: 8 kB / 272.2 MB, free: 1.883 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.009285, allocations: 0 / 272.2 MB, free: 1.883 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.001324/0.01061, allocations: 0.6634 MB / 272.8 MB, free: 1.184 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.01064, allocations: 8.031 kB / 272.8 MB, free: 1.176 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.01078, allocations: 68.75 kB / 272.9 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.01117, allocations: 220.6 kB / 273.1 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/0.01152, allocations: 343.9 kB / 273.4 MB, free: 472 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-05/0.01158, allocations: 28.38 kB / 273.5 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.01286, allocations: 0.5475 MB / 274 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.01288, allocations: 4.141 kB / 274 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.01292, allocations: 20.12 kB / 274 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.01293, allocations: 8 kB / 274 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.01439, allocations: 455.6 kB / 274.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.01607, allocations: 0.9802 MB / 275.5 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.01767, allocations: 472.5 kB / 275.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006847/0.01835, allocations: 230.7 kB / 276.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.053e-05/0.01841, allocations: 20 kB / 276.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.01846, allocations: 53.66 kB / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.01846, allocations: 0 / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01797/0.03643, allocations: 3.367 MB / 279.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.03657, allocations: 156.9 kB / 279.8 MB, free: 9.938 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.03687, allocations: 263.4 kB / 280 MB, free: 9.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.116e-05/0.03695, allocations: 41.7 kB / 280 MB, free: 9.613 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.0371, allocations: 200.4 kB / 280.2 MB, free: 9.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/0.03735, allocations: 202.3 kB / 280.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003208/0.03767, allocations: 119.9 kB / 280.6 MB, free: 9.086 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002966/0.03797, allocations: 0.5274 MB / 281.1 MB, free: 8.547 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/0.03965, allocations: 0.5674 MB / 281.7 MB, free: 7.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001843/0.04149, allocations: 0.6913 MB / 282.3 MB, free: 7.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00319/0.04468, allocations: 1.116 MB / 283.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.04469, allocations: 0 / 283.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003708/0.04839, allocations: 1.266 MB / 284.7 MB, free: 4.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.04841, allocations: 4 kB / 284.7 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.04843, allocations: 7.938 kB / 284.7 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.04845, allocations: 4 kB / 284.7 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.04974, allocations: 163.7 kB / 284.9 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.04975, allocations: 4.094 kB / 284.9 MB, free: 4.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000898/0.05065, allocations: 75.91 kB / 285 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.167e-05/0.05073, allocations: 20 kB / 285 MB, free: 4.547 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.0003379/0.05107, allocations: 208.4 kB / 285.2 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004143/0.05148, allocations: 177.4 kB / 285.4 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.05169, allocations: 67.3 kB / 285.4 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.0517, allocations: 8 kB / 285.5 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.05171, allocations: 0 / 285.5 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.05172, allocations: 3.984 kB / 285.5 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005123/0.05684, allocations: 2.053 MB / 287.5 MB, free: 1.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/0.05686, allocations: 8 kB / 287.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007639/0.05762, allocations: 167.7 kB / 287.7 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.197e-05/0.05764, allocations: 16 kB / 287.7 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.056e-05/0.0577, allocations: 24 kB / 287.7 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.02e-05/0.05772, allocations: 19.92 kB / 287.7 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.636e-05/0.05774, allocations: 16.25 kB / 287.8 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003575/0.06131, allocations: 1.669 MB / 289.4 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002331/0.06155, allocations: 95.62 kB / 289.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.982e-05/0.06163, allocations: 24 kB / 289.5 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.06219, allocations: 63.97 kB / 289.6 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/0.06242, allocations: 99.64 kB / 289.7 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.812e-05/0.06248, allocations: 31.94 kB / 289.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001782/0.06266, allocations: 181.1 kB / 289.9 MB, free: 15.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.06266, allocations: 0 / 289.9 MB, free: 15.2 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006484/0.06331, allocations: 116 kB / 290 MB, free: 15.09 MB / 282.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.0002099/0.06352, allocations: 134.9 kB / 290.2 MB, free: 14.95 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002821/0.06634, allocations: 0.9684 MB / 291.1 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.06635, allocations: 4.438 kB / 291.1 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000927/0.06727, allocations: 306.6 kB / 291.4 MB, free: 13.67 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009006/0.06817, allocations: 165.9 kB / 291.6 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002668/0.07084, allocations: 1.248 MB / 292.8 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.07112, allocations: 207.3 kB / 293 MB, free: 11.83 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004632/0.07159, allocations: 91.12 kB / 293.1 MB, free: 11.74 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002973/0.07188, allocations: 44.48 kB / 293.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of SimCode: time 8.91e-07/0.07188, allocations: 0 / 293.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of Templates: time 0.01682/0.0887, allocations: 8.785 MB / 302 MB, free: 2.98 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","/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.891956724924967]