Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.001929/0.001929, allocations: 94.16 kB / 20.78 MB, free: 0.5703 MB / 14.72 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.002258/0.002258, allocations: 149.8 kB / 24.06 MB, free: 3.57 MB / 14.72 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 1.422/1.422, allocations: 173.3 MB / 200.6 MB, free: 12.82 MB / 190.1 MB " [Timeout remaining time 178] 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.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 319.1 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.491e-05, allocations: 2.281 kB / 319.1 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002862/0.002887, allocations: 2.226 MB / 321.3 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008271/0.003714, allocations: 0.5572 MB / 321.9 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.003829, allocations: 8 kB / 321.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.003962, allocations: 36.42 kB / 321.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.004095, allocations: 70.03 kB / 322 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.004283, allocations: 54.95 kB / 322.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.004534, allocations: 273 kB / 322.3 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.00468, allocations: 66.28 kB / 322.4 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.004886, allocations: 153.2 kB / 322.5 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.005014, allocations: 79.09 kB / 322.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.005054, allocations: 18.19 kB / 322.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.815e-05/0.005092, allocations: 19.72 kB / 322.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.872e-05/0.005131, allocations: 45.33 kB / 322.7 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.463e-05/0.005216, allocations: 83.06 kB / 322.8 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.005515, allocations: 247.8 kB / 323 MB, free: 1.113 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.005518, allocations: 1.5 kB / 323 MB, free: 1.113 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005519, allocations: 0 / 323 MB, free: 1.113 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.005533, allocations: 0 / 323 MB, free: 1.113 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006171/0.00615, allocations: 454.9 kB / 323.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.006186, allocations: 11.06 kB / 323.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.419e-05/0.00624, allocations: 33.03 kB / 323.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.006494, allocations: 174.5 kB / 323.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.006513, allocations: 17.84 kB / 323.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.006556, allocations: 21.77 kB / 323.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.006895, allocations: 212.7 kB / 323.9 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.006912, allocations: 1.453 kB / 323.9 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.006932, allocations: 16.23 kB / 323.9 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.006939, allocations: 8.344 kB / 323.9 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.007186, allocations: 125.3 kB / 324.1 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008404/0.008027, allocations: 0.585 MB / 324.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.008317, allocations: 141.7 kB / 324.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.00845, allocations: 68.39 kB / 324.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.008469, allocations: 2.75 kB / 324.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.008496, allocations: 35.94 kB / 324.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.008498, allocations: 0 / 324.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001576/0.01007, allocations: 0.7362 MB / 325.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.01012, allocations: 53.94 kB / 325.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.0103, allocations: 178.6 kB / 325.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.01033, allocations: 31.73 kB / 325.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.01043, allocations: 151.2 kB / 326 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.2e-05/0.01051, allocations: 95.3 kB / 326.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.828e-05/0.01059, allocations: 47.48 kB / 326.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.01074, allocations: 332.5 kB / 326.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.01087, allocations: 58.86 kB / 326.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.01103, allocations: 98.38 kB / 326.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002985/0.01133, allocations: 170.1 kB / 326.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.01133, allocations: 0 / 326.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004797/0.01181, allocations: 246.2 kB / 327.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.01183, allocations: 10.38 kB / 327.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.01184, allocations: 1.188 kB / 327.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001757/0.01201, allocations: 31.88 kB / 327.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.01224, allocations: 53.83 kB / 327.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.01358, allocations: 1.344 MB / 328.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.01369, allocations: 9.719 kB / 328.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.01371, allocations: 10.56 kB / 328.5 MB, free: 12.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.01387, allocations: 137.5 kB / 328.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.01392, allocations: 29.55 kB / 328.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.647e-05/0.01398, allocations: 26.86 kB / 328.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.01398, allocations: 2.25 kB / 328.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.01399, allocations: 5.812 kB / 328.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.01399, allocations: 1.125 kB / 328.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009226/0.01491, allocations: 0.5601 MB / 329.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.01492, allocations: 1.438 kB / 329.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.01514, allocations: 47.03 kB / 329.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001248/0.01526, allocations: 39.72 kB / 329.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.01528, allocations: 6.719 kB / 329.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.01652, allocations: 1.346 MB / 330.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.01653, allocations: 1.094 kB / 330.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006231/0.01715, allocations: 405.7 kB / 331.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-05/0.01718, allocations: 19.03 kB / 331.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.01721, allocations: 11.11 kB / 331.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.01734, allocations: 3.938 kB / 331.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.0174, allocations: 20.73 kB / 331.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.01741, allocations: 4.688 kB / 331.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001124/0.01752, allocations: 121.6 kB / 331.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01752, allocations: 3.938 kB / 331.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.01788, allocations: 58.16 kB / 331.4 MB, free: 10.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000137/0.01802, allocations: 116.2 kB / 331.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.01861, allocations: 282 kB / 331.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.01861, allocations: 1.281 kB / 331.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003344/0.01895, allocations: 208 kB / 331.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.01938, allocations: 45.98 kB / 332 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.02051, allocations: 0.5765 MB / 332.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.02066, allocations: 137.5 kB / 332.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.174e-05/0.02073, allocations: 17.84 kB / 332.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.007e-05/0.02078, allocations: 19.66 kB / 332.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.02078, allocations: 0 / 332.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of Templates: time 0.006815/0.0276, allocations: 2.454 MB / 335.2 MB, free: 9.004 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.227805092930794]