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.000742/0.000742, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009656/0.001708, allocations: 449.7 kB / 10.37 MB, free: 332 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.0007863/0.0007863, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001147/0.001933, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9227/0.9227, allocations: 173.4 MB / 185.8 MB, free: 9.008 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08666/1.009, allocations: 52.49 MB / 238.3 MB, free: 4.449 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.232e-06/1.232e-06, allocations: 0 / 239.5 MB, free: 3.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.062e-05, allocations: 2.875 kB / 239.5 MB, free: 3.223 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002493/0.002514, allocations: 2.193 MB / 241.7 MB, free: 1.016 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008256/0.003339, allocations: 0.6586 MB / 242.4 MB, free: 360 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.372e-05/0.003433, allocations: 3.938 kB / 242.4 MB, free: 356 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.003619, allocations: 43.7 kB / 242.4 MB, free: 312 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.003748, allocations: 55.5 kB / 242.5 MB, free: 256 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.00401, allocations: 123.8 kB / 242.6 MB, free: 132 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.004344, allocations: 343.2 kB / 242.9 MB, free: 15.79 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.004473, allocations: 54.42 kB / 243 MB, free: 15.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.004727, allocations: 219.5 kB / 243.2 MB, free: 15.52 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.004904, allocations: 131.6 kB / 243.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.00495, allocations: 28 kB / 243.4 MB, free: 15.37 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.956e-05/0.004989, allocations: 32 kB / 243.4 MB, free: 15.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.629e-05/0.005065, allocations: 63.86 kB / 243.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.996e-05/0.005145, allocations: 67.81 kB / 243.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.005384, allocations: 187.4 kB / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.347e-05/0.005397, allocations: 0 / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.005399, allocations: 3.984 kB / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.005416, allocations: 0 / 243.7 MB, free: 15.02 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.0007964/0.006212, allocations: 0.5266 MB / 244.2 MB, free: 14.47 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.006242, allocations: 8.031 kB / 244.2 MB, free: 14.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.207e-05/0.006314, allocations: 52.91 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.006515, allocations: 157.3 kB / 244.4 MB, free: 14.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.006715, allocations: 335.8 kB / 244.8 MB, free: 13.84 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.006755, allocations: 28.33 kB / 244.8 MB, free: 13.81 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.007121, allocations: 274.4 kB / 245.1 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.007133, allocations: 0 / 245.1 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.007155, allocations: 8 kB / 245.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.007162, allocations: 4 kB / 245.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.007469, allocations: 164.2 kB / 245.2 MB, free: 13.35 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009278/0.008397, allocations: 0.6239 MB / 245.9 MB, free: 12.7 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.008717, allocations: 192 kB / 246 MB, free: 12.5 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.451e-05/0.008812, allocations: 56.83 kB / 246.1 MB, free: 12.44 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.008838, allocations: 4 kB / 246.1 MB, free: 12.44 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.008862, allocations: 42.55 kB / 246.1 MB, free: 12.39 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.392e-06/0.008864, allocations: 0 / 246.1 MB, free: 12.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=53): time 0.008658/0.01752, allocations: 3.342 MB / 249.5 MB, free: 8.992 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.01755, allocations: 59.91 kB / 249.5 MB, free: 8.922 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.01768, allocations: 174.5 kB / 249.7 MB, free: 8.738 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.01772, allocations: 37.7 kB / 249.8 MB, free: 8.695 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.483e-05/0.01778, allocations: 148.9 kB / 249.9 MB, free: 8.543 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.0179, allocations: 178.4 kB / 250.1 MB, free: 8.367 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.01806, allocations: 102.2 kB / 250.2 MB, free: 8.262 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.01816, allocations: 342.7 kB / 250.5 MB, free: 7.918 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.01837, allocations: 132.1 kB / 250.6 MB, free: 7.785 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.01862, allocations: 199.2 kB / 250.8 MB, free: 7.578 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004253/0.01905, allocations: 323.7 kB / 251.1 MB, free: 7.246 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01905, allocations: 0 / 251.1 MB, free: 7.246 MB / 250.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005659/0.01961, allocations: 393.2 kB / 251.5 MB, free: 6.852 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.01963, allocations: 4 kB / 251.5 MB, free: 6.848 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.01963, allocations: 4.125 kB / 251.5 MB, free: 6.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.01964, allocations: 4 kB / 251.5 MB, free: 6.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006282/0.02027, allocations: 171.8 kB / 251.7 MB, free: 6.672 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.02028, allocations: 4 kB / 251.7 MB, free: 6.668 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003107/0.02059, allocations: 71.91 kB / 251.8 MB, free: 6.598 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.02063, allocations: 12 kB / 251.8 MB, free: 6.586 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.0001282/0.02076, allocations: 148.5 kB / 251.9 MB, free: 6.43 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.498e-05/0.02083, allocations: 39.97 kB / 252 MB, free: 6.391 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.75e-05/0.0209, allocations: 51.25 kB / 252 MB, free: 6.34 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.0209, allocations: 7.984 kB / 252 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.02091, allocations: 0 / 252 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.02091, allocations: 0 / 252 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.02245, allocations: 1.041 MB / 253.1 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.02245, allocations: 8 kB / 253.1 MB, free: 5.152 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.02285, allocations: 135.8 kB / 253.2 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.764e-05/0.02295, allocations: 44.48 kB / 253.3 MB, free: 4.977 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.02296, allocations: 16 kB / 253.3 MB, free: 4.961 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.02299, allocations: 23.94 kB / 253.3 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-05/0.023, allocations: 15.94 kB / 253.3 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.02301, allocations: 11.94 kB / 253.3 MB, free: 4.91 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.02367, allocations: 0.6853 MB / 254 MB, free: 4.098 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.346e-05/0.02371, allocations: 23.98 kB / 254 MB, free: 4.074 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.024, allocations: 51.95 kB / 254.1 MB, free: 4.023 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.02413, allocations: 83.64 kB / 254.2 MB, free: 3.941 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.02416, allocations: 20 kB / 254.2 MB, free: 3.922 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.057e-05/0.02421, allocations: 49.84 kB / 254.2 MB, free: 3.871 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02421, allocations: 0 / 254.2 MB, free: 3.871 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003595/0.02457, allocations: 100 kB / 254.3 MB, free: 3.773 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.0001087/0.02468, allocations: 108.2 kB / 254.4 MB, free: 3.66 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004895/0.02517, allocations: 340.2 kB / 254.8 MB, free: 3.324 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.02518, allocations: 4 kB / 254.8 MB, free: 3.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.02538, allocations: 150.8 kB / 254.9 MB, free: 3.172 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.02584, allocations: 111.9 kB / 255 MB, free: 3.062 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002842/0.02868, allocations: 0.9745 MB / 256 MB, free: 1.953 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.921e-05/0.02877, allocations: 113.6 kB / 256.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002897/0.02906, allocations: 71.2 kB / 256.2 MB, free: 1.754 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.02932, allocations: 103.4 kB / 256.3 MB, free: 1.652 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02932, allocations: 0 / 256.3 MB, free: 1.652 MB / 250.7 MB Notification: Performance of Templates: time 0.009242/0.03856, allocations: 6.68 MB / 263 MB, free: 11.05 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4939210396260023]