Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001098/0.001098, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009309/0.0009309, allocations: 169.1 kB / 24.91 MB, free: 9.199 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.9081/0.9081, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 273.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.206e-05/2.346e-05, allocations: 2.312 kB / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00324/0.003264, allocations: 2.508 MB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.004531, allocations: 1.049 MB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.812e-05/0.004629, allocations: 7.938 kB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.004867, allocations: 55.45 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.00516, allocations: 159.3 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.005402, allocations: 167.6 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.005744, allocations: 482.5 kB / 277.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.005862, allocations: 54.84 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.006093, allocations: 275.5 kB / 278.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.006313, allocations: 207.5 kB / 278.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.596e-05/0.006359, allocations: 36 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.006534, allocations: 131.8 kB / 278.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.482e-05/0.006619, allocations: 107.7 kB / 278.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.293e-05/0.006702, allocations: 135.7 kB / 278.8 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003475/0.00705, allocations: 406.7 kB / 279.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.007053, allocations: 4 kB / 279.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.007055, allocations: 0 / 279.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.00706, allocations: 0 / 279.2 MB, free: 11.52 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0006563/0.007717, allocations: 0.5541 MB / 279.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.007748, allocations: 15.97 kB / 279.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.00796, allocations: 72.86 kB / 279.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.008245, allocations: 214.8 kB / 280.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.008353, allocations: 140 kB / 280.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.788e-05/0.008391, allocations: 32.36 kB / 280.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.008703, allocations: 315.7 kB / 280.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.008715, allocations: 192 / 280.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.008736, allocations: 20.12 kB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.008744, allocations: 8 kB / 280.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002229/0.008967, allocations: 183.2 kB / 280.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009402/0.009907, allocations: 0.8084 MB / 281.6 MB, free: 9.039 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.01013, allocations: 182.4 kB / 281.7 MB, free: 8.852 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.115e-05/0.01022, allocations: 84.72 kB / 281.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.01024, allocations: 4 kB / 281.8 MB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.01027, allocations: 38.56 kB / 281.9 MB, free: 8.715 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.242e-06/0.01027, allocations: 0 / 281.9 MB, free: 8.715 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001746/0.01201, allocations: 1.144 MB / 283 MB, free: 7.516 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.01205, allocations: 85.11 kB / 283.1 MB, free: 7.414 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.01218, allocations: 216.4 kB / 283.3 MB, free: 7.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.0122, allocations: 37.7 kB / 283.3 MB, free: 7.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.01226, allocations: 124.8 kB / 283.5 MB, free: 7.016 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.115e-05/0.01233, allocations: 154.7 kB / 283.6 MB, free: 6.863 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.622e-05/0.01241, allocations: 82.14 kB / 283.7 MB, free: 6.777 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.949e-05/0.01249, allocations: 346.8 kB / 284 MB, free: 6.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.028e-05/0.01258, allocations: 59.8 kB / 284.1 MB, free: 6.367 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.0127, allocations: 148.2 kB / 284.2 MB, free: 6.199 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.01288, allocations: 201.7 kB / 284.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.01288, allocations: 4.031 kB / 284.4 MB, free: 5.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003168/0.0132, allocations: 294.1 kB / 284.7 MB, free: 5.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.01321, allocations: 11.98 kB / 284.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01322, allocations: 0 / 284.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003577/0.01358, allocations: 213.4 kB / 284.9 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.0137, allocations: 55.89 kB / 285 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.01528, allocations: 2.047 MB / 287 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.837e-05/0.01538, allocations: 12 kB / 287 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.01541, allocations: 20.02 kB / 287.1 MB, free: 3.242 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.24e-05/0.0155, allocations: 132.6 kB / 287.2 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/0.01555, allocations: 35.97 kB / 287.2 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.998e-05/0.01559, allocations: 46.92 kB / 287.3 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.01559, allocations: 4 kB / 287.3 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.0156, allocations: 0 / 287.3 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.0156, allocations: 3.938 kB / 287.3 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006601/0.01626, allocations: 0.5828 MB / 287.9 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.01626, allocations: 0 / 287.9 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.01639, allocations: 59.83 kB / 287.9 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.01669, allocations: 207.7 kB / 288.1 MB, free: 2.137 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.01671, allocations: 15.98 kB / 288.1 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.01819, allocations: 2.018 MB / 290.2 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01819, allocations: 0 / 290.2 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09877/0.117, allocations: 435.5 kB / 290.6 MB, free: 24.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.796e-05/0.1171, allocations: 46.81 kB / 290.6 MB, free: 24.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.1171, allocations: 12.52 kB / 290.6 MB, free: 24.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.1172, allocations: 20.73 kB / 290.7 MB, free: 24.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.1174, allocations: 62.28 kB / 290.7 MB, free: 24.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.1174, allocations: 14.84 kB / 290.7 MB, free: 24.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.782e-05/0.1175, allocations: 61.89 kB / 290.8 MB, free: 24.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1175, allocations: 1.875 kB / 290.8 MB, free: 24.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003816/0.1178, allocations: 135.4 kB / 290.9 MB, free: 24.74 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.0008816/0.1187, allocations: 479.7 kB / 291.4 MB, free: 24.64 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005271/0.1193, allocations: 442.9 kB / 291.8 MB, free: 24.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.1193, allocations: 1.156 kB / 291.8 MB, free: 24.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.1195, allocations: 348.6 kB / 292.2 MB, free: 24.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.1198, allocations: 70.38 kB / 292.2 MB, free: 24.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008002/0.1206, allocations: 0.5905 MB / 292.8 MB, free: 24.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.138e-05/0.1206, allocations: 109.2 kB / 292.9 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000113/0.1207, allocations: 54.33 kB / 293 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.1209, allocations: 98.31 kB / 293.1 MB, free: 23.96 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1209, allocations: 1.219 kB / 293.1 MB, free: 23.96 MB / 266.7 MB Notification: Performance of Templates: time 0.01025/0.1311, allocations: 7.702 MB / 300.8 MB, free: 22.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7946629701182246]