Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001011/0.001011, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001416/0.002427, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009442/0.0009442, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001219/0.002163, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.066/1.066, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1001/1.167, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.641e-05, allocations: 2.312 kB / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003402/0.003428, allocations: 2.224 MB / 246.7 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009702/0.004399, allocations: 0.6817 MB / 247.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.004526, allocations: 4 kB / 247.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002163/0.004742, allocations: 51.58 kB / 247.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.00488, allocations: 51.62 kB / 247.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.005179, allocations: 127.7 kB / 247.6 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003287/0.005507, allocations: 339.1 kB / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.005643, allocations: 54.11 kB / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002974/0.00594, allocations: 227.5 kB / 248.2 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.006108, allocations: 139.6 kB / 248.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.006147, allocations: 32 kB / 248.4 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.113e-05/0.006178, allocations: 28 kB / 248.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.006247, allocations: 59.86 kB / 248.5 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.208e-05/0.006319, allocations: 67.81 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.006533, allocations: 187.4 kB / 248.7 MB, free: 10.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.196e-05/0.006545, allocations: 0 / 248.7 MB, free: 10.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.006547, allocations: 0 / 248.7 MB, free: 10.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.00656, allocations: 0 / 248.7 MB, free: 10.09 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.0007316/0.007291, allocations: 0.5227 MB / 249.3 MB, free: 9.539 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.007326, allocations: 8.031 kB / 249.3 MB, free: 9.531 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.19e-05/0.007397, allocations: 56.91 kB / 249.3 MB, free: 9.477 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.007613, allocations: 165.9 kB / 249.5 MB, free: 9.289 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.007817, allocations: 335.8 kB / 249.8 MB, free: 8.895 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.007858, allocations: 24.38 kB / 249.8 MB, free: 8.871 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004661/0.008324, allocations: 262.5 kB / 250.1 MB, free: 8.598 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.008337, allocations: 0 / 250.1 MB, free: 8.598 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.008358, allocations: 12 kB / 250.1 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.008366, allocations: 4 kB / 250.1 MB, free: 8.582 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002741/0.00864, allocations: 164.1 kB / 250.3 MB, free: 8.422 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009535/0.009593, allocations: 0.6084 MB / 250.9 MB, free: 7.785 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.009895, allocations: 200 kB / 251.1 MB, free: 7.578 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.796e-05/0.009973, allocations: 64.81 kB / 251.1 MB, free: 7.512 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.01, allocations: 4 kB / 251.1 MB, free: 7.508 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.01003, allocations: 42.56 kB / 251.2 MB, free: 7.457 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.322e-06/0.01003, allocations: 4 kB / 251.2 MB, free: 7.453 MB / 250.7 MB Notification: Performance of matching and sorting (n=53): time 0.006837/0.01687, allocations: 3.33 MB / 254.5 MB, free: 4.066 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.0169, allocations: 63.89 kB / 254.6 MB, free: 3.992 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.01702, allocations: 175 kB / 254.7 MB, free: 3.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.01705, allocations: 33.7 kB / 254.8 MB, free: 3.77 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.321e-05/0.01712, allocations: 148.9 kB / 254.9 MB, free: 3.621 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.01723, allocations: 194.3 kB / 255.1 MB, free: 3.43 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.01735, allocations: 90.3 kB / 255.2 MB, free: 3.336 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.01746, allocations: 342.7 kB / 255.5 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.01763, allocations: 132.1 kB / 255.7 MB, free: 2.859 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.01783, allocations: 195.2 kB / 255.9 MB, free: 2.656 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.01817, allocations: 327.6 kB / 256.2 MB, free: 2.312 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01817, allocations: 3.938 kB / 256.2 MB, free: 2.309 MB / 250.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004539/0.01863, allocations: 397.3 kB / 256.6 MB, free: 1.918 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.01864, allocations: 4 kB / 256.6 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.01865, allocations: 4 kB / 256.6 MB, free: 1.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.01866, allocations: 0 / 256.6 MB, free: 1.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004972/0.01916, allocations: 171.8 kB / 256.7 MB, free: 1.742 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.01917, allocations: 4 kB / 256.8 MB, free: 1.738 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.0194, allocations: 72.03 kB / 256.8 MB, free: 1.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.01943, allocations: 12 kB / 256.8 MB, free: 1.656 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.0001239/0.01956, allocations: 144.5 kB / 257 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.01962, allocations: 31.97 kB / 257 MB, free: 1.473 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.068e-05/0.01968, allocations: 51.31 kB / 257.1 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.01969, allocations: 4 kB / 257.1 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.01969, allocations: 0 / 257.1 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.0197, allocations: 3.984 kB / 257.1 MB, free: 1.41 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.02109, allocations: 1.028 MB / 258.1 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.02109, allocations: 8.188 kB / 258.1 MB, free: 248 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.0214, allocations: 147.7 kB / 258.2 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.182e-05/0.02148, allocations: 47.78 kB / 258.3 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.237e-06/0.02149, allocations: 15.98 kB / 258.3 MB, free: 36 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.02151, allocations: 16 kB / 258.3 MB, free: 20 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/0.02152, allocations: 12 kB / 258.3 MB, free: 8 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-05/0.02156, allocations: 11.98 kB / 258.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005605/0.02212, allocations: 0.6853 MB / 259 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/0.02216, allocations: 23.94 kB / 259.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.02236, allocations: 55.94 kB / 259.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.02247, allocations: 79.7 kB / 259.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.02249, allocations: 20 kB / 259.2 MB, free: 15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.293e-05/0.02253, allocations: 49.86 kB / 259.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02253, allocations: 0 / 259.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002731/0.0228, allocations: 100 kB / 259.4 MB, free: 14.86 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.0001086/0.02291, allocations: 108.2 kB / 259.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004121/0.02332, allocations: 344.2 kB / 259.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/0.02334, allocations: 4.25 kB / 259.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.02349, allocations: 155.1 kB / 259.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.02384, allocations: 111.9 kB / 260.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.02609, allocations: 0.974 MB / 261 MB, free: 13.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.307e-05/0.02617, allocations: 109.6 kB / 261.1 MB, free: 12.9 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.02639, allocations: 67.22 kB / 261.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.02661, allocations: 103.4 kB / 261.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.02661, allocations: 0 / 261.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of Templates: time 0.007983/0.03459, allocations: 6.673 MB / 268 MB, free: 6.133 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6580215049907565]