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.00113/0.00113, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001583/0.002714, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009823/0.0009823, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001366/0.002348, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8091/0.8091, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.145/0.9541, allocations: 52.48 MB / 238.5 MB, free: 7.645 MB / 234.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.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.593e-06/1.593e-06, allocations: 0 / 239.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.902e-05/2.061e-05, allocations: 2.312 kB / 239.7 MB, free: 6.402 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003554/0.003575, allocations: 2.194 MB / 241.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.004598, allocations: 0.653 MB / 242.6 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.004699, allocations: 0 / 242.6 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.004895, allocations: 54.62 kB / 242.6 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.005039, allocations: 59.45 kB / 242.7 MB, free: 3.445 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003037/0.005343, allocations: 120.6 kB / 242.8 MB, free: 3.328 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.005704, allocations: 339.2 kB / 243.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.005844, allocations: 63.61 kB / 243.2 MB, free: 2.934 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002936/0.006137, allocations: 211.5 kB / 243.4 MB, free: 2.727 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.00633, allocations: 127.7 kB / 243.5 MB, free: 2.602 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.499e-05/0.006385, allocations: 28.97 kB / 243.5 MB, free: 2.574 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.00643, allocations: 32 kB / 243.6 MB, free: 2.543 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.267e-05/0.006513, allocations: 63.8 kB / 243.6 MB, free: 2.48 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.883e-05/0.006592, allocations: 68.77 kB / 243.7 MB, free: 2.414 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.006852, allocations: 195.3 kB / 243.9 MB, free: 2.223 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.00686, allocations: 1.781 kB / 243.9 MB, free: 2.223 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.006861, allocations: 0 / 243.9 MB, free: 2.223 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.006873, allocations: 0 / 243.9 MB, free: 2.223 MB / 234.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.0008283/0.007701, allocations: 0.5222 MB / 244.4 MB, free: 1.68 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.007734, allocations: 8.031 kB / 244.4 MB, free: 1.672 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.608e-05/0.00782, allocations: 54.38 kB / 244.5 MB, free: 1.621 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.008045, allocations: 150 kB / 244.6 MB, free: 1.449 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.008268, allocations: 343.8 kB / 245 MB, free: 1.047 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.00832, allocations: 28.95 kB / 245 MB, free: 1.02 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.00874, allocations: 263 kB / 245.3 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.008754, allocations: 0.5312 kB / 245.3 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.008782, allocations: 12 kB / 245.3 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.008791, allocations: 5.688 kB / 245.3 MB, free: 0.7305 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.009145, allocations: 164.1 kB / 245.4 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.01022, allocations: 0.6212 MB / 246.1 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003651/0.01059, allocations: 201.5 kB / 246.2 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.0107, allocations: 56.83 kB / 246.3 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.01073, allocations: 9 kB / 246.3 MB, free: 15.65 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.01076, allocations: 30.56 kB / 246.3 MB, free: 15.61 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.703e-06/0.01076, allocations: 0.75 kB / 246.3 MB, free: 15.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=53): time 0.009961/0.02072, allocations: 3.366 MB / 249.7 MB, free: 12.2 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.02076, allocations: 59.91 kB / 249.8 MB, free: 12.12 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.02091, allocations: 171.1 kB / 249.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.879e-05/0.02096, allocations: 37.7 kB / 250 MB, free: 11.9 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.024e-05/0.02104, allocations: 152.8 kB / 250.1 MB, free: 11.75 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.02119, allocations: 178.4 kB / 250.3 MB, free: 11.57 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.02137, allocations: 98.25 kB / 250.4 MB, free: 11.47 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.02149, allocations: 342.7 kB / 250.7 MB, free: 11.12 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/0.02175, allocations: 136.1 kB / 250.9 MB, free: 10.99 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.02204, allocations: 195.2 kB / 251 MB, free: 10.79 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005123/0.02255, allocations: 343.6 kB / 251.4 MB, free: 10.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.02255, allocations: 0 / 251.4 MB, free: 10.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006691/0.02322, allocations: 385.3 kB / 251.8 MB, free: 10.05 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.02324, allocations: 8 kB / 251.8 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.02325, allocations: 4.125 kB / 251.8 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.02327, allocations: 4 kB / 251.8 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007363/0.024, allocations: 170.7 kB / 251.9 MB, free: 9.875 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.02401, allocations: 4 kB / 251.9 MB, free: 9.871 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/0.02439, allocations: 67.91 kB / 252 MB, free: 9.805 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.02443, allocations: 12 kB / 252 MB, free: 9.793 MB / 250.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.0001785/0.02461, allocations: 148.5 kB / 252.2 MB, free: 9.637 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.486e-05/0.02471, allocations: 35.97 kB / 252.2 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.863e-05/0.02478, allocations: 51.3 kB / 252.3 MB, free: 9.551 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.02479, allocations: 4 kB / 252.3 MB, free: 9.547 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.02479, allocations: 0 / 252.3 MB, free: 9.547 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.0248, allocations: 0 / 252.3 MB, free: 9.547 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.02664, allocations: 1.041 MB / 253.3 MB, free: 8.375 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.02665, allocations: 8 kB / 253.3 MB, free: 8.367 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004721/0.02712, allocations: 144.5 kB / 253.4 MB, free: 8.227 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.02723, allocations: 39.83 kB / 253.5 MB, free: 8.188 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-05/0.02725, allocations: 16 kB / 253.5 MB, free: 8.172 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.02728, allocations: 20 kB / 253.5 MB, free: 8.152 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.361e-05/0.0273, allocations: 19.92 kB / 253.5 MB, free: 8.133 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.02731, allocations: 12 kB / 253.6 MB, free: 8.121 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008066/0.02811, allocations: 0.6852 MB / 254.2 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.812e-05/0.02817, allocations: 27.98 kB / 254.3 MB, free: 7.273 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003405/0.02851, allocations: 47.95 kB / 254.3 MB, free: 7.227 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.02866, allocations: 75.7 kB / 254.4 MB, free: 7.152 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.0287, allocations: 20 kB / 254.4 MB, free: 7.133 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.477e-05/0.02876, allocations: 57.84 kB / 254.5 MB, free: 7.074 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02876, allocations: 3.938 kB / 254.5 MB, free: 7.07 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004755/0.02924, allocations: 96 kB / 254.6 MB, free: 6.977 MB / 250.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.0001542/0.02939, allocations: 116.2 kB / 254.7 MB, free: 6.855 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005823/0.02997, allocations: 336.8 kB / 255 MB, free: 6.523 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/0.02999, allocations: 4 kB / 255 MB, free: 6.52 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003095/0.0303, allocations: 188.6 kB / 255.2 MB, free: 6.336 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006656/0.03096, allocations: 296 kB / 255.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003237/0.0342, allocations: 0.9817 MB / 256.5 MB, free: 4.887 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.368e-05/0.03427, allocations: 113.6 kB / 256.6 MB, free: 4.758 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002083/0.03448, allocations: 63.22 kB / 256.6 MB, free: 4.695 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.03471, allocations: 103.4 kB / 256.7 MB, free: 4.594 MB / 250.7 MB Notification: Performance of SimCode: time 1.052e-06/0.03471, allocations: 0 / 256.7 MB, free: 4.594 MB / 250.7 MB Notification: Performance of Templates: time 0.00794/0.04265, allocations: 6.68 MB / 263.4 MB, free: 14 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.447471438907087]