Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001665/0.002869, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001451/0.002526, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9184/0.9184, allocations: 177.5 MB / 190 MB, free: 4.797 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09/1.008, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.342e-05, allocations: 9.406 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003048/0.003061, allocations: 2.443 MB / 247.6 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006295/0.009356, allocations: 0.8683 MB / 248.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.009495, allocations: 15.94 kB / 248.5 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.009681, allocations: 55.5 kB / 248.6 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.009852, allocations: 75.36 kB / 248.6 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.01026, allocations: 199.4 kB / 248.8 MB, free: 9.918 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003613/0.01062, allocations: 391.5 kB / 249.2 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.01079, allocations: 78.47 kB / 249.3 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.0111, allocations: 255.4 kB / 249.5 MB, free: 9.207 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003236/0.01434, allocations: 151.6 kB / 249.7 MB, free: 9.059 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.01439, allocations: 39.94 kB / 249.7 MB, free: 9.02 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.69e-05/0.01444, allocations: 32 kB / 249.8 MB, free: 8.988 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.8e-05/0.01453, allocations: 83.78 kB / 249.8 MB, free: 8.906 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.214e-05/0.01461, allocations: 83.75 kB / 249.9 MB, free: 8.824 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.01488, allocations: 243.1 kB / 250.2 MB, free: 8.586 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.01489, allocations: 0 / 250.2 MB, free: 8.586 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.01489, allocations: 0 / 250.2 MB, free: 8.586 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.0149, allocations: 8 kB / 250.2 MB, free: 8.578 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.0009101/0.01581, allocations: 0.6203 MB / 250.8 MB, free: 7.934 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.01584, allocations: 16.02 kB / 250.8 MB, free: 7.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.691e-05/0.01593, allocations: 64.89 kB / 250.9 MB, free: 7.855 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.0162, allocations: 225.1 kB / 251.1 MB, free: 7.613 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.0164, allocations: 343.9 kB / 251.4 MB, free: 7.211 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.01645, allocations: 28.38 kB / 251.5 MB, free: 7.184 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.01701, allocations: 424.3 kB / 251.9 MB, free: 6.738 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.01702, allocations: 8.125 kB / 251.9 MB, free: 6.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.01705, allocations: 20.12 kB / 251.9 MB, free: 6.711 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.01706, allocations: 8 kB / 251.9 MB, free: 6.703 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003358/0.01739, allocations: 178.6 kB / 252.1 MB, free: 6.527 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008279/0.01822, allocations: 0.6351 MB / 252.7 MB, free: 5.852 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004106/0.01863, allocations: 326.8 kB / 253 MB, free: 5.492 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.01874, allocations: 115.4 kB / 253.1 MB, free: 5.367 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.01877, allocations: 11.98 kB / 253.2 MB, free: 5.355 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.01879, allocations: 38.56 kB / 253.2 MB, free: 5.309 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.402e-06/0.01879, allocations: 0 / 253.2 MB, free: 5.309 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005366/0.02416, allocations: 2.273 MB / 255.5 MB, free: 3.027 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.06e-05/0.02423, allocations: 153 kB / 255.6 MB, free: 2.848 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004343/0.02466, allocations: 224.9 kB / 255.8 MB, free: 2.613 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.969e-05/0.02471, allocations: 41.7 kB / 255.9 MB, free: 2.566 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.02477, allocations: 145.6 kB / 256 MB, free: 2.422 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.02488, allocations: 194.3 kB / 256.2 MB, free: 2.23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.02504, allocations: 98.25 kB / 256.3 MB, free: 2.129 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.662e-05/0.02513, allocations: 350.7 kB / 256.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.02535, allocations: 200.2 kB / 256.8 MB, free: 1.578 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.02561, allocations: 290.6 kB / 257.1 MB, free: 1.27 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004608/0.02607, allocations: 498.5 kB / 257.6 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.02607, allocations: 7.938 kB / 257.6 MB, free: 0.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005648/0.02664, allocations: 0.5363 MB / 258.2 MB, free: 212 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.02665, allocations: 4 kB / 258.2 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.02666, allocations: 4 kB / 258.2 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.02667, allocations: 4 kB / 258.2 MB, free: 200 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005677/0.02723, allocations: 183.7 kB / 258.3 MB, free: 16 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.02724, allocations: 4.219 kB / 258.4 MB, free: 12 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003102/0.02755, allocations: 79.86 kB / 258.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.02759, allocations: 12 kB / 258.4 MB, free: 15.92 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.0001414/0.02773, allocations: 148.5 kB / 258.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.02788, allocations: 121.5 kB / 258.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.285e-05/0.02795, allocations: 67.61 kB / 258.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.02796, allocations: 8 kB / 258.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.02796, allocations: 4 kB / 258.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.02796, allocations: 3.984 kB / 258.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.02938, allocations: 1.2 MB / 260 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.02938, allocations: 12 kB / 260 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003386/0.02972, allocations: 184.5 kB / 260.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.02982, allocations: 79.62 kB / 260.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.02983, allocations: 15.98 kB / 260.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.02986, allocations: 24 kB / 260.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.458e-06/0.02987, allocations: 15.94 kB / 260.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.02988, allocations: 15.94 kB / 260.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005815/0.03046, allocations: 0.8473 MB / 261.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.0305, allocations: 27.98 kB / 261.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.03073, allocations: 59.95 kB / 261.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.03083, allocations: 91.62 kB / 261.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.03086, allocations: 24 kB / 261.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.287e-05/0.03091, allocations: 78.77 kB / 261.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03091, allocations: 3.938 kB / 261.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003166/0.03123, allocations: 128 kB / 261.6 MB, free: 12.45 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.0001057/0.03133, allocations: 124.1 kB / 261.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004731/0.03181, allocations: 461.7 kB / 262.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/0.03182, allocations: 8.656 kB / 262.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002176/0.03203, allocations: 193.2 kB / 262.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008844/0.03292, allocations: 495.6 kB / 262.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.0352, allocations: 1.176 MB / 264 MB, free: 9.777 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.943e-05/0.03529, allocations: 138.8 kB / 264.1 MB, free: 9.621 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002426/0.03554, allocations: 83.36 kB / 264.2 MB, free: 9.539 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.03583, allocations: 119.3 kB / 264.3 MB, free: 9.422 MB / 266.7 MB Notification: Performance of SimCode: time 1.463e-06/0.03583, allocations: 0 / 264.3 MB, free: 9.422 MB / 266.7 MB Notification: Performance of Templates: time 0.01002/0.04585, allocations: 9.678 MB / 274 MB, free: 15.8 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.494831793010235]