Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001908/0.001908, allocations: 92.62 kB / 20.96 MB, free: 3.469 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.002191/0.002191, allocations: 149.4 kB / 24.26 MB, free: 180 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.466/1.466, allocations: 173.4 MB / 200.8 MB, free: 9.312 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.65e-05/2.811e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004337/0.004366, allocations: 2.068 MB / 269.4 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.005978, allocations: 0.6314 MB / 270 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.006177, allocations: 8 kB / 270 MB, free: 4.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000342/0.006519, allocations: 47.62 kB / 270 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002425/0.006761, allocations: 51.56 kB / 270.1 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.007237, allocations: 127.7 kB / 270.2 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005594/0.007796, allocations: 347.1 kB / 270.6 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.007992, allocations: 52.5 kB / 270.6 MB, free: 3.402 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004219/0.008414, allocations: 199.6 kB / 270.8 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.008662, allocations: 127.6 kB / 270.9 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.091e-05/0.008743, allocations: 32 kB / 271 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.351e-05/0.008796, allocations: 28 kB / 271 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.008928, allocations: 99.69 kB / 271.1 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.009055, allocations: 87.78 kB / 271.2 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004468/0.009502, allocations: 311 kB / 271.5 MB, free: 2.535 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.009505, allocations: 0 / 271.5 MB, free: 2.535 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.009506, allocations: 0 / 271.5 MB, free: 2.535 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.009513, allocations: 4 kB / 271.5 MB, free: 2.531 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001275/0.01079, allocations: 0.5089 MB / 272 MB, free: 1.992 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.01082, allocations: 8.031 kB / 272 MB, free: 1.984 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.01096, allocations: 64.8 kB / 272.1 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.01134, allocations: 192.9 kB / 272.2 MB, free: 1.711 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003709/0.01171, allocations: 347.8 kB / 272.6 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.32e-05/0.01177, allocations: 20.38 kB / 272.6 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009545/0.01273, allocations: 374.9 kB / 273 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.01275, allocations: 11.98 kB / 273 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.01278, allocations: 4 kB / 273 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.0128, allocations: 8 kB / 273 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.01426, allocations: 0.4898 MB / 273.5 MB, free: 404 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.0161, allocations: 0.8645 MB / 274.4 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.01719, allocations: 302.3 kB / 274.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005723/0.01777, allocations: 168.7 kB / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.01781, allocations: 8 kB / 274.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.01784, allocations: 34.56 kB / 274.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.01784, allocations: 0 / 274.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.03024/0.04808, allocations: 5.683 MB / 280.5 MB, free: 9.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.04815, allocations: 59.91 kB / 280.6 MB, free: 9.152 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.04849, allocations: 206.3 kB / 280.8 MB, free: 8.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.452e-05/0.04856, allocations: 33.7 kB / 280.8 MB, free: 8.902 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.0487, allocations: 157 kB / 281 MB, free: 8.746 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.04891, allocations: 186.3 kB / 281.2 MB, free: 8.562 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003006/0.04921, allocations: 90.34 kB / 281.3 MB, free: 8.469 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.04941, allocations: 342.8 kB / 281.6 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.05089, allocations: 469 kB / 282 MB, free: 7.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.05241, allocations: 0.5264 MB / 282.6 MB, free: 7.125 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002731/0.05514, allocations: 0.8142 MB / 283.4 MB, free: 6.297 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.05514, allocations: 0 / 283.4 MB, free: 6.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.003149/0.05829, allocations: 1.017 MB / 284.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.05831, allocations: 10.66 kB / 284.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.05832, allocations: 0 / 284.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.05835, allocations: 4 kB / 284.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.05937, allocations: 175.8 kB / 284.6 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.05938, allocations: 7.938 kB / 284.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007488/0.06013, allocations: 87.83 kB / 284.7 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.31e-05/0.06019, allocations: 19.98 kB / 284.7 MB, free: 4.977 MB / 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.0002771/0.06047, allocations: 157.7 kB / 284.9 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.06062, allocations: 43.86 kB / 284.9 MB, free: 4.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00014/0.06076, allocations: 51.3 kB / 284.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.06077, allocations: 4 kB / 285 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.06077, allocations: 0 / 285 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.06078, allocations: 3.984 kB / 285 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00474/0.06552, allocations: 1.703 MB / 286.7 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/0.06554, allocations: 8 kB / 286.7 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000679/0.06622, allocations: 155.7 kB / 286.8 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.434e-05/0.06623, allocations: 8 kB / 286.8 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.06628, allocations: 20 kB / 286.8 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-05/0.06629, allocations: 12 kB / 286.9 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/0.06631, allocations: 11.94 kB / 286.9 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003148/0.06945, allocations: 1.263 MB / 288.1 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.06965, allocations: 79.73 kB / 288.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.095e-05/0.06972, allocations: 23.98 kB / 288.2 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005508/0.07027, allocations: 67.92 kB / 288.3 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.07049, allocations: 91.7 kB / 288.4 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.07053, allocations: 20 kB / 288.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002035/0.07074, allocations: 164.2 kB / 288.6 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07074, allocations: 0 / 288.6 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00053/0.07127, allocations: 96 kB / 288.7 MB, free: 0.7227 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.0001947/0.07146, allocations: 130.9 kB / 288.8 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.1052/0.1767, allocations: 0.7883 MB / 289.6 MB, free: 33.49 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/0.1767, allocations: 1.781 kB / 289.6 MB, free: 33.49 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.1778, allocations: 323.7 kB / 289.9 MB, free: 33.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007434/0.1785, allocations: 90.5 kB / 290 MB, free: 33.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.1805, allocations: 0.9528 MB / 290.9 MB, free: 32.93 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.1807, allocations: 177.7 kB / 291.1 MB, free: 32.85 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003949/0.1811, allocations: 84.23 kB / 291.2 MB, free: 32.83 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002316/0.1813, allocations: 32.14 kB / 291.2 MB, free: 32.83 MB / 266.7 MB Notification: Performance of SimCode: time 1.884e-06/0.1813, allocations: 1.156 kB / 291.2 MB, free: 32.83 MB / 266.7 MB Notification: Performance of Templates: time 0.01082/0.1922, allocations: 6.109 MB / 297.3 MB, free: 31.39 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.582448784960434]