Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001158/0.001158, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001812/0.00297, allocations: 449.8 kB / 10.44 MB, free: 252 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.001192/0.001192, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001578/0.00277, allocations: 479.5 kB / 11.82 MB, free: 2.344 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 0.9897/0.9897, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09386/1.084, allocations: 53.66 MB / 243.4 MB, free: 15.5 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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.684e-05/1.813e-05, allocations: 2.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002562/0.00258, allocations: 2.442 MB / 247.1 MB, free: 11.77 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.003699, allocations: 0.8684 MB / 248 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.003837, allocations: 11.88 kB / 248 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.00401, allocations: 59.55 kB / 248.1 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.004164, allocations: 75.36 kB / 248.1 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.004564, allocations: 203.4 kB / 248.3 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003286/0.004893, allocations: 391.5 kB / 248.7 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.005028, allocations: 66.48 kB / 248.8 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003046/0.005333, allocations: 263.4 kB / 249.1 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.005499, allocations: 151.5 kB / 249.2 MB, free: 9.699 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/0.005542, allocations: 36 kB / 249.2 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.661e-05/0.005578, allocations: 36 kB / 249.3 MB, free: 9.629 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.881e-05/0.005657, allocations: 91.72 kB / 249.4 MB, free: 9.539 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.504e-05/0.005722, allocations: 79.81 kB / 249.4 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.005966, allocations: 243.1 kB / 249.7 MB, free: 9.223 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.005975, allocations: 0 / 249.7 MB, free: 9.223 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.005976, allocations: 0 / 249.7 MB, free: 9.223 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.005984, allocations: 0 / 249.7 MB, free: 9.223 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007191/0.006703, allocations: 0.632 MB / 250.3 MB, free: 8.566 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.006732, allocations: 12.03 kB / 250.3 MB, free: 8.555 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.99e-05/0.006802, allocations: 60.89 kB / 250.4 MB, free: 8.496 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.007047, allocations: 221.1 kB / 250.6 MB, free: 8.258 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/0.007213, allocations: 351.9 kB / 250.9 MB, free: 7.848 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/0.007255, allocations: 24.38 kB / 251 MB, free: 7.824 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/0.007705, allocations: 430.3 kB / 251.4 MB, free: 7.375 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.007719, allocations: 8.141 kB / 251.4 MB, free: 7.367 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.007742, allocations: 12.12 kB / 251.4 MB, free: 7.355 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.007749, allocations: 8 kB / 251.4 MB, free: 7.348 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/0.008002, allocations: 173.4 kB / 251.6 MB, free: 7.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008072/0.008809, allocations: 0.639 MB / 252.2 MB, free: 6.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.009313, allocations: 334.7 kB / 252.5 MB, free: 6.133 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.009432, allocations: 111.5 kB / 252.7 MB, free: 6.012 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.009472, allocations: 15.98 kB / 252.7 MB, free: 5.996 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.009498, allocations: 38.56 kB / 252.7 MB, free: 5.949 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.645e-06/0.009501, allocations: 0 / 252.7 MB, free: 5.949 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005599/0.0151, allocations: 2.279 MB / 255 MB, free: 3.664 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.411e-05/0.01516, allocations: 145 kB / 255.1 MB, free: 3.492 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.01531, allocations: 228.9 kB / 255.4 MB, free: 3.254 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.01535, allocations: 37.7 kB / 255.4 MB, free: 3.211 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.01541, allocations: 145.7 kB / 255.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.01552, allocations: 194.3 kB / 255.7 MB, free: 2.875 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.01568, allocations: 98.25 kB / 255.8 MB, free: 2.773 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.174e-05/0.01576, allocations: 342.7 kB / 256.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.01599, allocations: 208.1 kB / 256.4 MB, free: 2.223 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.01626, allocations: 290.6 kB / 256.6 MB, free: 1.914 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.01674, allocations: 498.5 kB / 257.1 MB, free: 1.402 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.01674, allocations: 3.938 kB / 257.1 MB, free: 1.398 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005927/0.01733, allocations: 0.5324 MB / 257.7 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.01735, allocations: 8 kB / 257.7 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.01736, allocations: 4 kB / 257.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.01737, allocations: 8.219 kB / 257.7 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006053/0.01797, allocations: 179.7 kB / 257.9 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.01798, allocations: 8 kB / 257.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.01829, allocations: 71.86 kB / 257.9 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.01833, allocations: 16 kB / 258 MB, free: 0.5703 MB / 250.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.0001712/0.0185, allocations: 152.5 kB / 258.1 MB, free: 420 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.01867, allocations: 121.6 kB / 258.2 MB, free: 292 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.538e-05/0.01875, allocations: 71.61 kB / 258.3 MB, free: 216 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.01876, allocations: 8 kB / 258.3 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.01876, allocations: 0 / 258.3 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.01877, allocations: 3.984 kB / 258.3 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.02074, allocations: 1.2 MB / 259.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.02075, allocations: 8 kB / 259.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003701/0.02112, allocations: 187.7 kB / 259.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.02124, allocations: 75.61 kB / 259.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.02125, allocations: 16 kB / 259.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.02128, allocations: 24 kB / 259.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/0.02129, allocations: 19.94 kB / 259.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.0213, allocations: 15.94 kB / 259.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006616/0.02196, allocations: 0.8441 MB / 260.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.02201, allocations: 35.98 kB / 260.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.02225, allocations: 55.95 kB / 260.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.02237, allocations: 91.66 kB / 260.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.704e-05/0.02239, allocations: 35.94 kB / 260.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.416e-05/0.02246, allocations: 70.78 kB / 261 MB, free: 13.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02246, allocations: 0 / 261 MB, free: 13.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003553/0.02281, allocations: 123.9 kB / 261.1 MB, free: 13.09 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.0001318/0.02295, allocations: 120 kB / 261.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005207/0.02347, allocations: 469.7 kB / 261.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/0.02348, allocations: 8 kB / 261.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002308/0.02371, allocations: 192.2 kB / 261.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006431/0.02435, allocations: 487.8 kB / 262.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.02676, allocations: 1.169 MB / 263.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.624e-05/0.02686, allocations: 142.8 kB / 263.6 MB, free: 10.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002595/0.02711, allocations: 75.23 kB / 263.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003085/0.02742, allocations: 123.3 kB / 263.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.02742, allocations: 0 / 263.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of Templates: time 0.0109/0.03832, allocations: 9.696 MB / 273.5 MB, free: 460 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.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.8354692170396447]