Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001339/0.001339, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001505/0.001505, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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.495/1.495, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 43.94 kB / 378.9 MB, free: 2.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2196, allocations: 53.38 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003903/0.2235, allocations: 2.415 MB / 434.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.2254, allocations: 1.088 MB / 435.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.2255, allocations: 4 kB / 435.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.2257, allocations: 63.42 kB / 435.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004567/0.2262, allocations: 179.1 kB / 436.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004156/0.2266, allocations: 191.6 kB / 436.3 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005517/0.2272, allocations: 0.5102 MB / 436.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.2273, allocations: 69.12 kB / 436.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.2277, allocations: 243.3 kB / 437.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.228, allocations: 283.1 kB / 437.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.172e-05/0.2281, allocations: 40 kB / 437.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002458/0.2283, allocations: 136 kB / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.2285, allocations: 115.6 kB / 437.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.2287, allocations: 175.3 kB / 437.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006403/0.2293, allocations: 0.5427 MB / 438.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2293, allocations: 0 / 438.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.093e-06/0.2293, allocations: 4 kB / 438.3 MB, free: 0.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.2293, allocations: 0 / 438.3 MB, free: 0.668 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001376/0.2307, allocations: 0.6375 MB / 439 MB, free: 0 / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.2307, allocations: 12.16 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004337/0.2312, allocations: 72.61 kB / 439.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005334/0.2317, allocations: 259.1 kB / 439.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.2319, allocations: 144 kB / 439.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.462e-05/0.232, allocations: 36.33 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009151/0.2329, allocations: 446.7 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.2329, allocations: 0 / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.2329, allocations: 16 kB / 439.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.2329, allocations: 8 kB / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.234, allocations: 462.2 kB / 440.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.2358, allocations: 0.7962 MB / 441.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000925/0.2367, allocations: 368.8 kB / 441.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005228/0.2372, allocations: 206.1 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.895e-05/0.2373, allocations: 8.375 kB / 441.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.2373, allocations: 43 kB / 441.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.843e-06/0.2373, allocations: 0 / 441.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005765/0.2431, allocations: 1.906 MB / 443.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.2431, allocations: 89.55 kB / 443.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.2435, allocations: 251.8 kB / 444.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.396e-05/0.2436, allocations: 41.62 kB / 444.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.2437, allocations: 149.1 kB / 444.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.2439, allocations: 194.3 kB / 444.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.244, allocations: 90.17 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.2442, allocations: 338.8 kB / 444.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000486/0.2447, allocations: 192.9 kB / 445 MB, free: 9.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005563/0.2452, allocations: 265.7 kB / 445.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000934/0.2462, allocations: 391.4 kB / 445.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2462, allocations: 0 / 445.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001423/0.2476, allocations: 0.5926 MB / 446.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2476, allocations: 4 kB / 446.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2476, allocations: 0 / 446.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009069/0.2485, allocations: 310.5 kB / 446.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.2489, allocations: 67.89 kB / 446.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004312/0.2532, allocations: 2.771 MB / 449.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003217/0.2535, allocations: 23.97 kB / 449.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.726e-05/0.2536, allocations: 23.98 kB / 449.5 MB, free: 5.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002173/0.2538, allocations: 165.1 kB / 449.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.2539, allocations: 39.69 kB / 449.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.254, allocations: 47.31 kB / 449.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.254, allocations: 4 kB / 449.7 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.254, allocations: 0 / 449.7 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.254, allocations: 3.984 kB / 449.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.2564, allocations: 1.129 MB / 450.8 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2564, allocations: 0 / 450.8 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.2568, allocations: 59.95 kB / 450.9 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007904/0.2576, allocations: 284.6 kB / 451.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.2576, allocations: 15.98 kB / 451.2 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.2616, allocations: 2.697 MB / 453.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2616, allocations: 0 / 453.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.2636, allocations: 0.9446 MB / 454.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.2638, allocations: 79.77 kB / 454.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.133e-05/0.2639, allocations: 12 kB / 454.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003381/0.2642, allocations: 27.97 kB / 455 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.2644, allocations: 80.41 kB / 455 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.543e-05/0.2644, allocations: 23.92 kB / 455.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.2647, allocations: 193.4 kB / 455.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2647, allocations: 0 / 455.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006391/0.2653, allocations: 147.9 kB / 455.4 MB, free: 15.06 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.001495/0.2668, allocations: 407.8 kB / 455.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.2683, allocations: 0.6557 MB / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2683, allocations: 4 kB / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008884/0.2692, allocations: 460.1 kB / 456.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.2696, allocations: 52.12 kB / 456.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.2713, allocations: 0.8243 MB / 457.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.2715, allocations: 186.9 kB / 458 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002476/0.2717, allocations: 78.89 kB / 458 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2719, allocations: 43.41 kB / 458.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2719, allocations: 0 / 458.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of Templates: time 0.01435/0.2862, allocations: 7.934 MB / 466 MB, free: 4.543 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.622282656011521]