Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001417/0.001417, allocations: 78.19 kB / 21.42 MB, free: 3.082 MB / 18.57 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.004487/0.004487, allocations: 151 kB / 24.81 MB, free: 9.215 MB / 18.57 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 0.9613/0.9613, allocations: 173.4 MB / 201.4 MB, free: 9.227 MB / 186.7 MB " [Timeout remaining time 179] 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.677e-05/1.848e-05, allocations: 2.312 kB / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00247/0.002488, allocations: 2.353 MB / 270.7 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.003659, allocations: 0.8973 MB / 271.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.003763, allocations: 7.938 kB / 271.6 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.003941, allocations: 43.58 kB / 271.7 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003555/0.004296, allocations: 139.2 kB / 271.8 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002009/0.004497, allocations: 179.6 kB / 272 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000299/0.004796, allocations: 426.6 kB / 272.4 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.004908, allocations: 44.91 kB / 272.5 MB, free: 2.129 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.005103, allocations: 251.6 kB / 272.7 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004737/0.005576, allocations: 191.5 kB / 272.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.089e-05/0.005617, allocations: 32 kB / 272.9 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.005763, allocations: 119.8 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.666e-05/0.005849, allocations: 99.69 kB / 273.1 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.382e-05/0.005933, allocations: 119.7 kB / 273.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.006259, allocations: 366.9 kB / 273.6 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.006261, allocations: 0 / 273.6 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.006262, allocations: 0 / 273.6 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.006266, allocations: 0 / 273.6 MB, free: 0.9727 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.000685/0.006951, allocations: 0.6596 MB / 274.3 MB, free: 284 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.006984, allocations: 8.922 kB / 274.3 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.007177, allocations: 80.66 kB / 274.4 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.007439, allocations: 247.4 kB / 274.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.45e-05/0.007533, allocations: 140 kB / 274.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.007574, allocations: 28.36 kB / 274.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/0.007891, allocations: 308.2 kB / 275.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.007904, allocations: 8.172 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.007925, allocations: 9.5 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-06/0.007932, allocations: 8 kB / 275.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.008159, allocations: 204.3 kB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.009206, allocations: 1.074 MB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.009461, allocations: 206 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.009564, allocations: 96.34 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.009589, allocations: 8 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.009612, allocations: 45.34 kB / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.009613, allocations: 3.938 kB / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001897/0.01151, allocations: 1.204 MB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.01154, allocations: 88.86 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.01168, allocations: 261.5 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.01171, allocations: 41.69 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.002e-05/0.01178, allocations: 183.6 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.01186, allocations: 154.6 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.01195, allocations: 99.73 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.01207, allocations: 0.5117 MB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-05/0.01217, allocations: 72.94 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.0123, allocations: 173.2 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.01251, allocations: 206.3 kB / 279.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.01251, allocations: 0 / 279.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006327/0.01314, allocations: 361 kB / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.01316, allocations: 4 kB / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.01316, allocations: 0 / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000353/0.01352, allocations: 207.6 kB / 280.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.01363, allocations: 51.91 kB / 280.3 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/0.01552, allocations: 2.784 MB / 283.1 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.01562, allocations: 15.98 kB / 283.1 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.01565, allocations: 15.94 kB / 283.1 MB, free: 6.973 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: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 9.839e-05/0.01574, allocations: 184.5 kB / 283.3 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.41e-05/0.0158, allocations: 43.81 kB / 283.3 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.01584, allocations: 42.98 kB / 283.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.01584, allocations: 4 kB / 283.4 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.01584, allocations: 0 / 283.4 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.01585, allocations: 3.984 kB / 283.4 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007699/0.01662, allocations: 0.7568 MB / 284.1 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.01662, allocations: 3.938 kB / 284.1 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.01673, allocations: 43.97 kB / 284.2 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002992/0.01703, allocations: 187.5 kB / 284.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.01705, allocations: 15.98 kB / 284.4 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.01904, allocations: 2.768 MB / 287.2 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.01904, allocations: 4.031 kB / 287.2 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005098/0.01955, allocations: 0.5613 MB / 287.7 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.01963, allocations: 67.73 kB / 287.8 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.584e-05/0.01966, allocations: 8 kB / 287.8 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.01977, allocations: 19.98 kB / 287.8 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.01986, allocations: 59.81 kB / 287.9 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.01987, allocations: 15.98 kB / 287.9 MB, free: 2.004 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.513e-05/0.01995, allocations: 180.2 kB / 288.1 MB, free: 1.828 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01995, allocations: 0 / 288.1 MB, free: 1.828 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003491/0.0203, allocations: 139.9 kB / 288.2 MB, free: 1.691 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001546/0.02045, allocations: 143.1 kB / 288.3 MB, free: 1.543 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004829/0.02093, allocations: 0.5158 MB / 288.9 MB, free: 1.008 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.02094, allocations: 4 kB / 288.9 MB, free: 1.004 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.02123, allocations: 408.4 kB / 289.3 MB, free: 0.582 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.02149, allocations: 59.91 kB / 289.3 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08971/0.1112, allocations: 0.5852 MB / 289.9 MB, free: 29.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.329e-05/0.1113, allocations: 108.8 kB / 290 MB, free: 29.04 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.1114, allocations: 29.81 kB / 290 MB, free: 29.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.1115, allocations: 114.6 kB / 290.1 MB, free: 28.98 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1115, allocations: 0 / 290.1 MB, free: 28.98 MB / 266.7 MB Notification: Performance of Templates: time 0.009591/0.1211, allocations: 7.205 MB / 297.4 MB, free: 27.81 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.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.910174349322915]