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.001052/0.001052, allocations: 80.31 kB / 22.21 MB, free: 2.281 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.001279/0.001279, allocations: 165.1 kB / 25.61 MB, free: 8.879 MB / 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 0.9492/0.9492, allocations: 177.1 MB / 206 MB, free: 4.512 MB / 186.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.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.114e-06/2.114e-06, allocations: 3.938 kB / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.836e-05/3.048e-05, allocations: 2.312 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.004125/0.004155, allocations: 2.377 MB / 276.6 MB, free: 2.062 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.005572, allocations: 0.6306 MB / 277.2 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.005777, allocations: 7.938 kB / 277.2 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.005944, allocations: 35.66 kB / 277.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.006136, allocations: 77.22 kB / 277.3 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.006434, allocations: 67.83 kB / 277.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.006802, allocations: 270.6 kB / 277.6 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.006994, allocations: 60.55 kB / 277.7 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003597/0.007354, allocations: 151.6 kB / 277.8 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.00754, allocations: 84.31 kB / 277.9 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.14e-05/0.007581, allocations: 24 kB / 277.9 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.147e-05/0.007663, allocations: 20 kB / 278 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.499e-05/0.007708, allocations: 51.77 kB / 278 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.918e-05/0.007797, allocations: 79.83 kB / 278.1 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.008139, allocations: 171.3 kB / 278.3 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/0.008145, allocations: 0 / 278.3 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.008147, allocations: 4 kB / 278.3 MB, free: 356 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.008153, allocations: 0 / 278.3 MB, free: 356 kB / 250.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.0007802/0.008933, allocations: 0.5428 MB / 278.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.008979, allocations: 12.03 kB / 278.8 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002085/0.009188, allocations: 52.78 kB / 278.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.009472, allocations: 184.9 kB / 279.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.009496, allocations: 12.88 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.393e-05/0.00954, allocations: 24.38 kB / 279.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.009822, allocations: 177.7 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.009839, allocations: 192 / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.00986, allocations: 12.38 kB / 279.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.009871, allocations: 7.938 kB / 279.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.009994, allocations: 71.38 kB / 279.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009203/0.01091, allocations: 0.6456 MB / 280 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.01111, allocations: 107 kB / 280.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.358e-05/0.01117, allocations: 43.59 kB / 280.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.01119, allocations: 4 kB / 280.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.01122, allocations: 41.39 kB / 280.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.01122, allocations: 0 / 280.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001103/0.01232, allocations: 0.5788 MB / 280.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.01236, allocations: 55.41 kB / 280.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.01252, allocations: 213.8 kB / 281 MB, free: 13.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.01254, allocations: 33.7 kB / 281.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.01265, allocations: 191.1 kB / 281.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.086e-05/0.01272, allocations: 99.14 kB / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.768e-05/0.0128, allocations: 55.28 kB / 281.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.01296, allocations: 0.5078 MB / 281.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.546e-05/0.01301, allocations: 27.92 kB / 281.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.759e-05/0.0131, allocations: 78.92 kB / 282 MB, free: 12.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.01326, allocations: 121.2 kB / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.01326, allocations: 0 / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003084/0.01357, allocations: 185 kB / 282.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.01359, allocations: 8.125 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.0136, allocations: 4 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.01374, allocations: 43.58 kB / 282.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.01392, allocations: 43.92 kB / 282.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.01508, allocations: 1.788 MB / 284.2 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.01519, allocations: 12.03 kB / 284.2 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.0152, allocations: 4 kB / 284.2 MB, free: 9.969 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.0001283/0.01533, allocations: 172.5 kB / 284.4 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.192e-05/0.01538, allocations: 31.84 kB / 284.4 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.419e-05/0.01543, allocations: 25.95 kB / 284.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01543, allocations: 0 / 284.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.01544, allocations: 4 kB / 284.4 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.01544, allocations: 0 / 284.4 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007124/0.01616, allocations: 0.537 MB / 285 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.01616, allocations: 4 kB / 285 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.01634, allocations: 39.92 kB / 285 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000117/0.01645, allocations: 39.64 kB / 285.1 MB, free: 9.051 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.01647, allocations: 4 kB / 285.1 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.01757, allocations: 1.78 MB / 286.8 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.01757, allocations: 4 kB / 286.8 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004095/0.01798, allocations: 371 kB / 287.2 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.01801, allocations: 11.91 kB / 287.2 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.01804, allocations: 8 kB / 287.2 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.01814, allocations: 8 kB / 287.2 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.0182, allocations: 19.84 kB / 287.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.01821, allocations: 16.02 kB / 287.3 MB, free: 6.691 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.549e-05/0.0183, allocations: 160.7 kB / 287.4 MB, free: 6.535 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0183, allocations: 0 / 287.4 MB, free: 6.535 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000384/0.01868, allocations: 63.94 kB / 287.5 MB, free: 6.473 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.0001387/0.01882, allocations: 99.25 kB / 287.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004433/0.01926, allocations: 301.2 kB / 287.9 MB, free: 6.051 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.01926, allocations: 4.25 kB / 287.9 MB, free: 6.047 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002319/0.0195, allocations: 245.4 kB / 288.1 MB, free: 5.785 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.01991, allocations: 51.91 kB / 288.2 MB, free: 5.734 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.02113, allocations: 0.5826 MB / 288.8 MB, free: 5.117 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.213e-05/0.02121, allocations: 92.27 kB / 288.9 MB, free: 5.008 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.092e-05/0.02129, allocations: 17.94 kB / 288.9 MB, free: 4.988 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.02142, allocations: 114.2 kB / 289 MB, free: 4.875 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.02142, allocations: 0 / 289 MB, free: 4.875 MB / 266.7 MB Notification: Performance of Templates: time 0.006213/0.02763, allocations: 2.749 MB / 291.7 MB, free: 2.176 MB / 266.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","",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.75385804194957]