Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.00256/0.00256, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002726/0.002726, allocations: 161.3 kB / 24.27 MB, free: 156 kB / 18.57 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.571/1.571, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.135e-05/3.342e-05, allocations: 2.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.00688/0.006913, allocations: 2.372 MB / 274.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.00903, allocations: 0.6232 MB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.009213, allocations: 7.938 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.009442, allocations: 43.58 kB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002805/0.009723, allocations: 71.34 kB / 275.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.01013, allocations: 71.78 kB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005394/0.01067, allocations: 262.6 kB / 275.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.01091, allocations: 68.53 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.01137, allocations: 159.6 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.01161, allocations: 75.73 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-05/0.01168, allocations: 20 kB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.01179, allocations: 31.92 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.159e-05/0.01187, allocations: 47.81 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.01203, allocations: 79.83 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005281/0.01256, allocations: 251.1 kB / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.01256, allocations: 0 / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01257, allocations: 0 / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.01257, allocations: 4 kB / 276.5 MB, free: 13.67 MB / 266.7 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.001315/0.01389, allocations: 0.5504 MB / 277 MB, free: 13.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.156e-05/0.01395, allocations: 12.03 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002992/0.01425, allocations: 48.78 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004805/0.01473, allocations: 184.9 kB / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.01476, allocations: 16.88 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-05/0.01483, allocations: 20.38 kB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006648/0.0155, allocations: 225 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.01553, allocations: 4.188 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.01556, allocations: 8.375 kB / 277.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.01558, allocations: 7.938 kB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.01608, allocations: 121.9 kB / 277.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.01805, allocations: 0.727 MB / 278.4 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005145/0.01856, allocations: 151 kB / 278.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000252/0.01882, allocations: 67.59 kB / 278.6 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.78e-05/0.01885, allocations: 11.98 kB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/0.01891, allocations: 37.39 kB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 2.004e-06/0.01891, allocations: 0 / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.002878/0.02179, allocations: 0.7552 MB / 279.4 MB, free: 10.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.02186, allocations: 51.41 kB / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.02226, allocations: 245.9 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.294e-05/0.0223, allocations: 25.7 kB / 279.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/0.02252, allocations: 199.1 kB / 279.9 MB, free: 9.977 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.02269, allocations: 99.2 kB / 280 MB, free: 9.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.02285, allocations: 59.36 kB / 280.1 MB, free: 9.812 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003986/0.02325, allocations: 0.5079 MB / 280.6 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.02343, allocations: 55.97 kB / 280.6 MB, free: 9.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000267/0.0237, allocations: 110.4 kB / 280.7 MB, free: 9.109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/0.02418, allocations: 188.8 kB / 280.9 MB, free: 8.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.02418, allocations: 4 kB / 280.9 MB, free: 8.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007653/0.02495, allocations: 265.6 kB / 281.2 MB, free: 8.633 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.02497, allocations: 7.938 kB / 281.2 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.02498, allocations: 4 kB / 281.2 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.02527, allocations: 43.59 kB / 281.2 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.0256, allocations: 44.11 kB / 281.3 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.02802, allocations: 1.885 MB / 283.2 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.0282, allocations: 8 kB / 283.2 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.02823, allocations: 15.92 kB / 283.2 MB, free: 6.496 MB / 266.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: 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.0002476/0.02847, allocations: 180.7 kB / 283.4 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.637e-05/0.02856, allocations: 31.84 kB / 283.4 MB, free: 6.277 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.69e-05/0.02864, allocations: 26 kB / 283.4 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.02864, allocations: 4 kB / 283.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.02865, allocations: 0 / 283.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.02866, allocations: 3.984 kB / 283.4 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.03018, allocations: 0.6544 MB / 284.1 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.03018, allocations: 0 / 284.1 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.03051, allocations: 39.98 kB / 284.1 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001981/0.03071, allocations: 51.53 kB / 284.2 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.03074, allocations: 8 kB / 284.2 MB, free: 5.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002315/0.03305, allocations: 1.881 MB / 286.1 MB, free: 3.426 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.03306, allocations: 3.984 kB / 286.1 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009733/0.03403, allocations: 469.5 kB / 286.5 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.03408, allocations: 16.05 kB / 286.5 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/0.03413, allocations: 15.94 kB / 286.5 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.0343, allocations: 4 kB / 286.5 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.276e-05/0.03438, allocations: 23.94 kB / 286.6 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.0344, allocations: 8 kB / 286.6 MB, free: 2.867 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001881/0.03459, allocations: 176.7 kB / 286.8 MB, free: 2.695 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03459, allocations: 4 kB / 286.8 MB, free: 2.691 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000512/0.0351, allocations: 56 kB / 286.8 MB, free: 2.637 MB / 266.7 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.0001859/0.03529, allocations: 107.2 kB / 286.9 MB, free: 2.523 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008765/0.03617, allocations: 357.2 kB / 287.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.03617, allocations: 0 / 287.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004503/0.03662, allocations: 293.2 kB / 287.6 MB, free: 1.844 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.03706, allocations: 38.89 kB / 287.6 MB, free: 1.809 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.03833, allocations: 0.5992 MB / 288.2 MB, free: 1.172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.03849, allocations: 134.2 kB / 288.3 MB, free: 1.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.057e-05/0.03857, allocations: 21.94 kB / 288.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.445e-05/0.03862, allocations: 20.5 kB / 288.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.03862, allocations: 0 / 288.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of Templates: time 0.007308/0.04593, allocations: 2.503 MB / 290.9 MB, free: 14.51 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.434771745000035]