Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.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.0009391/0.0009391, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001561/0.001561, allocations: 161 kB / 24.56 MB, free: 20 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 0.9405/0.9405, allocations: 177.1 MB / 205 MB, free: 5.297 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.First,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.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,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.First") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.445e-06/2.445e-06, allocations: 3.984 kB / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.769e-05, allocations: 5.266 kB / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002827/0.002854, allocations: 2.403 MB / 275.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009014/0.003756, allocations: 0.6387 MB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.003864, allocations: 4 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.004005, allocations: 43.53 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.004132, allocations: 79.27 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.004348, allocations: 67.84 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000241/0.004589, allocations: 278.5 kB / 276.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.004752, allocations: 71.3 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/0.004978, allocations: 175.5 kB / 276.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.005099, allocations: 87.72 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.34e-05/0.005132, allocations: 20 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.652e-05/0.005189, allocations: 20 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.005222, allocations: 55.77 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.804e-05/0.00529, allocations: 87.81 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.005519, allocations: 179.3 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.005521, allocations: 0 / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.005523, allocations: 0 / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.005528, allocations: 0 / 277.2 MB, free: 13.19 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005652/0.006093, allocations: 0.5584 MB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.006126, allocations: 8.031 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.006249, allocations: 52.75 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.006461, allocations: 188.9 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.006476, allocations: 16.88 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.804e-05/0.006515, allocations: 24.33 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.006734, allocations: 165.4 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.006747, allocations: 8.125 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.006764, allocations: 8.375 kB / 278.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.006776, allocations: 11.94 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.006891, allocations: 78.92 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.007495, allocations: 0.5444 MB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.007675, allocations: 141.8 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.821e-05/0.007763, allocations: 63.66 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.007781, allocations: 4 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.007803, allocations: 49.39 kB / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.007805, allocations: 3.938 kB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001265/0.00907, allocations: 0.7895 MB / 279.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/0.009096, allocations: 55.41 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.009212, allocations: 221.9 kB / 280.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.00923, allocations: 33.7 kB / 280.2 MB, free: 9.957 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.838e-05/0.009308, allocations: 183.5 kB / 280.3 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.726e-05/0.009366, allocations: 123 kB / 280.5 MB, free: 9.652 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.764e-05/0.009423, allocations: 59.36 kB / 280.5 MB, free: 9.586 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.009544, allocations: 0.5078 MB / 281 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.762e-05/0.009602, allocations: 35.97 kB / 281.1 MB, free: 9.031 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.997e-05/0.009692, allocations: 83.06 kB / 281.1 MB, free: 8.938 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.009846, allocations: 140.6 kB / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.009847, allocations: 0 / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002514/0.0101, allocations: 246.1 kB / 281.5 MB, free: 8.539 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.01011, allocations: 7.938 kB / 281.5 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.01012, allocations: 4 kB / 281.5 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001351/0.01025, allocations: 43.66 kB / 281.6 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.01039, allocations: 55.91 kB / 281.6 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009711/0.01136, allocations: 2.114 MB / 283.7 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.593e-05/0.01142, allocations: 11.98 kB / 283.8 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.01143, allocations: 12 kB / 283.8 MB, free: 6.172 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.442e-05/0.01151, allocations: 168.5 kB / 283.9 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.01155, allocations: 31.86 kB / 284 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.633e-05/0.01157, allocations: 30.66 kB / 284 MB, free: 5.934 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.01158, allocations: 4 kB / 284 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.01158, allocations: 7.922 kB / 284 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.01159, allocations: 4.031 kB / 284 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000617/0.0122, allocations: 0.6746 MB / 284.7 MB, free: 5.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01221, allocations: 0 / 284.7 MB, free: 5.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.01234, allocations: 55.91 kB / 284.7 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.406e-05/0.01241, allocations: 39.75 kB / 284.8 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.01243, allocations: 8 kB / 284.8 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007373/0.01316, allocations: 1.81 MB / 286.6 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.01317, allocations: 8 kB / 286.6 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000536/0.0137, allocations: 454.9 kB / 287 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.612e-05/0.01372, allocations: 11.91 kB / 287.1 MB, free: 2.641 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.01373, allocations: 12.03 kB / 287.1 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.382e-05/0.0138, allocations: 11.98 kB / 287.1 MB, free: 2.617 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.01385, allocations: 27.84 kB / 287.1 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.01386, allocations: 11.98 kB / 287.1 MB, free: 2.578 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.517e-05/0.01393, allocations: 156.4 kB / 287.3 MB, free: 2.426 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01393, allocations: 0 / 287.3 MB, free: 2.426 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002259/0.01416, allocations: 68 kB / 287.3 MB, free: 2.359 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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 8.432e-05/0.01424, allocations: 103.2 kB / 287.4 MB, free: 2.246 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003675/0.01461, allocations: 349.8 kB / 287.8 MB, free: 1.883 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.01461, allocations: 8 kB / 287.8 MB, free: 1.875 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.01479, allocations: 270.1 kB / 288 MB, free: 1.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.01505, allocations: 48.14 kB / 288.1 MB, free: 1.543 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000932/0.01599, allocations: 0.6386 MB / 288.7 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.875e-05/0.01604, allocations: 88.92 kB / 288.8 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.07e-05/0.0161, allocations: 18.3 kB / 288.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.491e-05/0.01614, allocations: 24.5 kB / 288.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01614, allocations: 4 kB / 288.9 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of Templates: time 0.1027/0.1188, allocations: 2.692 MB / 291.6 MB, free: 25.47 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.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.7540143062360585]