Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 169.1 kB / 24.91 MB, free: 9.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.973/0.973, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.017e-05/2.167e-05, allocations: 2.312 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002751/0.002772, allocations: 2.348 MB / 275.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.003841, allocations: 0.8451 MB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.003947, allocations: 4 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.004173, allocations: 51.56 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.004321, allocations: 67.44 kB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003149/0.004636, allocations: 175.5 kB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002888/0.004925, allocations: 391.5 kB / 277.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.005059, allocations: 82.83 kB / 277.4 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.005332, allocations: 231.5 kB / 277.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.005492, allocations: 147.6 kB / 277.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.972e-05/0.005532, allocations: 40 kB / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.291e-05/0.005565, allocations: 36 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.917e-05/0.005644, allocations: 95.7 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.282e-05/0.005727, allocations: 107.7 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.005963, allocations: 263 kB / 278.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.005964, allocations: 0 / 278.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.005966, allocations: 0 / 278.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.00597, allocations: 0 / 278.3 MB, free: 12.46 MB / 266.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.0006206/0.00659, allocations: 0.5157 MB / 278.8 MB, free: 11.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.006619, allocations: 12.03 kB / 278.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.993e-05/0.006689, allocations: 60.89 kB / 278.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.0069, allocations: 190.5 kB / 279 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.007071, allocations: 343.9 kB / 279.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.076e-05/0.007112, allocations: 32.36 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.00758, allocations: 413.7 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.007595, allocations: 12.08 kB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.00762, allocations: 16.06 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.007629, allocations: 15.98 kB / 279.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.007881, allocations: 170.6 kB / 280 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006815/0.008563, allocations: 0.6352 MB / 280.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004445/0.009007, allocations: 322.7 kB / 281 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.009123, allocations: 115.5 kB / 281.1 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.831e-05/0.009162, allocations: 12 kB / 281.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.009186, allocations: 42.5 kB / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.864e-06/0.009187, allocations: 0 / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005679/0.01487, allocations: 2.239 MB / 283.4 MB, free: 7.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.549e-05/0.01494, allocations: 149 kB / 283.5 MB, free: 6.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.01506, allocations: 183.2 kB / 283.7 MB, free: 6.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.646e-05/0.01512, allocations: 45.7 kB / 283.7 MB, free: 6.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.383e-05/0.01517, allocations: 133.7 kB / 283.9 MB, free: 6.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.01529, allocations: 198.3 kB / 284.1 MB, free: 6.348 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.01546, allocations: 90.25 kB / 284.2 MB, free: 6.254 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.128e-05/0.01555, allocations: 342.8 kB / 284.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.0158, allocations: 204.2 kB / 284.7 MB, free: 5.707 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.01607, allocations: 290.7 kB / 285 MB, free: 5.398 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.01657, allocations: 0.4912 MB / 285.5 MB, free: 4.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01657, allocations: 3.938 kB / 285.5 MB, free: 4.871 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006152/0.01719, allocations: 0.5285 MB / 286 MB, free: 4.336 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.01721, allocations: 8 kB / 286 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.01721, allocations: 3.938 kB / 286 MB, free: 4.324 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.01723, allocations: 8.219 kB / 286 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005322/0.01776, allocations: 163.7 kB / 286.2 MB, free: 4.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.01776, allocations: 4 kB / 286.2 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.01808, allocations: 79.84 kB / 286.3 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.01812, allocations: 12 kB / 286.3 MB, free: 4.062 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.0001843/0.0183, allocations: 144.5 kB / 286.4 MB, free: 3.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.01848, allocations: 121.6 kB / 286.5 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.56e-05/0.01855, allocations: 59.31 kB / 286.6 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.01856, allocations: 8 kB / 286.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.01856, allocations: 4 kB / 286.6 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.01857, allocations: 7.969 kB / 286.6 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.02014, allocations: 1.193 MB / 287.8 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.02014, allocations: 8 kB / 287.8 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003427/0.02049, allocations: 167.7 kB / 288 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-05/0.0205, allocations: 16 kB / 288 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.048e-05/0.02053, allocations: 27.98 kB / 288 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/0.02054, allocations: 23.94 kB / 288 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.02055, allocations: 15.94 kB / 288.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006457/0.02119, allocations: 0.8475 MB / 288.9 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.0213, allocations: 59.67 kB / 289 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/0.02134, allocations: 27.98 kB / 289 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.02159, allocations: 55.95 kB / 289 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.0217, allocations: 95.67 kB / 289.1 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.02173, allocations: 27.98 kB / 289.2 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.629e-05/0.02177, allocations: 46.77 kB / 289.2 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02177, allocations: 0 / 289.2 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003623/0.02213, allocations: 120 kB / 289.3 MB, free: 0.6797 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.0001262/0.02226, allocations: 116.1 kB / 289.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005471/0.02281, allocations: 469.1 kB / 289.9 MB, free: 96 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.02281, allocations: 4 kB / 289.9 MB, free: 92 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.02299, allocations: 160.2 kB / 290.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.0235, allocations: 134.1 kB / 290.2 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.02474, allocations: 0.9969 MB / 291.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.273e-05/0.02483, allocations: 130.8 kB / 291.3 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002597/0.02509, allocations: 75.2 kB / 291.4 MB, free: 14.42 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.02538, allocations: 119.3 kB / 291.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of SimCode: time 8.01e-07/0.02538, allocations: 0 / 291.5 MB, free: 14.3 MB / 282.7 MB Notification: Performance of Templates: time 0.0107/0.03608, allocations: 9.347 MB / 300.9 MB, free: 5.016 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.751977752894163]