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.001743/0.001743, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002087/0.002087, allocations: 210.7 kB / 24.48 MB, free: 3.977 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.458/1.458, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.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 0.001589/0.001589, allocations: 51.94 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2234, allocations: 53.36 MB / 432.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003829/0.2272, allocations: 2.33 MB / 434.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.2291, allocations: 1.022 MB / 435.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.2292, allocations: 7.938 kB / 435.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.2294, allocations: 67.48 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004171/0.2298, allocations: 155.3 kB / 435.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003619/0.2302, allocations: 159.7 kB / 436 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004999/0.2307, allocations: 478.7 kB / 436.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2308, allocations: 47.88 kB / 436.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.2311, allocations: 203.5 kB / 436.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000327/0.2314, allocations: 255.2 kB / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.782e-05/0.2315, allocations: 36 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.2317, allocations: 127.9 kB / 437.2 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.2318, allocations: 111.7 kB / 437.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.232, allocations: 151.3 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.2326, allocations: 0.494 MB / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2326, allocations: 0 / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2326, allocations: 4 kB / 437.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2326, allocations: 0 / 437.9 MB, free: 1.141 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001265/0.2338, allocations: 0.5946 MB / 438.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.2339, allocations: 8.031 kB / 438.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003318/0.2342, allocations: 56.73 kB / 438.6 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.2347, allocations: 247.6 kB / 438.8 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/0.2349, allocations: 144 kB / 439 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-05/0.235, allocations: 28.45 kB / 439 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008/0.2358, allocations: 404.5 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.2358, allocations: 11.94 kB / 439.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.357e-05/0.2358, allocations: 12 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.2358, allocations: 8 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009433/0.2368, allocations: 414.2 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.2389, allocations: 1.08 MB / 440.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007433/0.2397, allocations: 330.5 kB / 441.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004065/0.2401, allocations: 168.7 kB / 441.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.2401, allocations: 4.719 kB / 441.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.2401, allocations: 38.56 kB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.864e-06/0.2402, allocations: 0 / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005273/0.2454, allocations: 1.667 MB / 443.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.2455, allocations: 88.84 kB / 443.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003463/0.2458, allocations: 247.4 kB / 443.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/0.2459, allocations: 37.7 kB / 443.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.246, allocations: 132.8 kB / 443.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.2461, allocations: 158.8 kB / 443.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.2463, allocations: 86.06 kB / 443.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2464, allocations: 338.8 kB / 444.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/0.2468, allocations: 164.8 kB / 444.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004692/0.2473, allocations: 259.5 kB / 444.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007655/0.2481, allocations: 335.1 kB / 444.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2481, allocations: 4 kB / 444.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001278/0.2494, allocations: 0.5435 MB / 445.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.2494, allocations: 7.984 kB / 445.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2494, allocations: 0 / 445.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008572/0.2502, allocations: 296.7 kB / 445.8 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.2505, allocations: 47.95 kB / 445.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004201/0.2547, allocations: 2.724 MB / 448.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.255, allocations: 24 kB / 448.5 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.944e-05/0.2551, allocations: 20 kB / 448.6 MB, free: 6.059 MB / 350.1 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 0.0002033/0.2553, allocations: 157.7 kB / 448.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.193e-05/0.2553, allocations: 27.81 kB / 448.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.2555, allocations: 55.03 kB / 448.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.2555, allocations: 4 kB / 448.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.2555, allocations: 0 / 448.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.2555, allocations: 0 / 448.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.2575, allocations: 0.9685 MB / 449.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2575, allocations: 4 kB / 449.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.2578, allocations: 47.95 kB / 449.8 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008055/0.2586, allocations: 288.6 kB / 450.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.2586, allocations: 11.98 kB / 450.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004064/0.2627, allocations: 2.666 MB / 452.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2627, allocations: 0 / 452.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.2645, allocations: 0.8038 MB / 453.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.2646, allocations: 71.94 kB / 453.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.782e-05/0.2647, allocations: 11.98 kB / 453.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.265, allocations: 23.98 kB / 453.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.2652, allocations: 67.86 kB / 453.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.2652, allocations: 19.92 kB / 453.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.2655, allocations: 180.5 kB / 454 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2655, allocations: 0 / 454 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006353/0.2661, allocations: 131.9 kB / 454.1 MB, free: 376 kB / 350.1 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.001482/0.2676, allocations: 412.4 kB / 454.5 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.269, allocations: 0.6025 MB / 455.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.269, allocations: 0 / 455.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008386/0.2698, allocations: 409.6 kB / 455.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.2703, allocations: 49.14 kB / 455.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.2717, allocations: 0.7219 MB / 456.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.2719, allocations: 175.8 kB / 456.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002419/0.2721, allocations: 74.92 kB / 456.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.2722, allocations: 31.41 kB / 456.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2722, allocations: 0 / 456.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of Templates: time 0.01378/0.286, allocations: 7.334 MB / 463.9 MB, free: 6.695 MB / 366.1 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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.494568032998359]