Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001417, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001655/0.001655, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 230.3 MB / 258 MB, free: 8.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 60.14 kB / 378.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2334, allocations: 53.37 MB / 432.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004331/0.2377, allocations: 2.481 MB / 434.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.2398, allocations: 1.08 MB / 435.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.2399, allocations: 7.938 kB / 435.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.2402, allocations: 67.48 kB / 435.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000481/0.2407, allocations: 143.5 kB / 435.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.2411, allocations: 163.7 kB / 436 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006155/0.2418, allocations: 482.6 kB / 436.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.2419, allocations: 40.92 kB / 436.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003064/0.2422, allocations: 211.5 kB / 436.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003928/0.2426, allocations: 251.2 kB / 437 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.758e-05/0.2427, allocations: 40 kB / 437 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.243, allocations: 128 kB / 437.2 MB, free: 2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.2431, allocations: 111.6 kB / 437.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.2434, allocations: 175.2 kB / 437.4 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006946/0.2441, allocations: 0.4921 MB / 437.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2441, allocations: 0 / 437.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2441, allocations: 0 / 437.9 MB, free: 1.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.2441, allocations: 0 / 437.9 MB, free: 1.23 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.001451/0.2455, allocations: 0.5946 MB / 438.5 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.2456, allocations: 15.97 kB / 438.5 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003751/0.2459, allocations: 52.69 kB / 438.6 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/0.2466, allocations: 242.8 kB / 438.8 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.2467, allocations: 92.59 kB / 438.9 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.29e-05/0.2468, allocations: 28.38 kB / 439 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008896/0.2477, allocations: 382.8 kB / 439.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.2477, allocations: 4 kB / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.2478, allocations: 11.98 kB / 439.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.2478, allocations: 8 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009486/0.2487, allocations: 422.2 kB / 439.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.251, allocations: 1.208 MB / 441 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007775/0.2518, allocations: 325.5 kB / 441.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004154/0.2522, allocations: 172.7 kB / 441.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.2522, allocations: 4 kB / 441.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.2523, allocations: 43.28 kB / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.843e-06/0.2523, allocations: 0 / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005331/0.2576, allocations: 1.66 MB / 443.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7e-05/0.2577, allocations: 92.84 kB / 443.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.258, allocations: 250.7 kB / 443.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.247e-05/0.2581, allocations: 37.7 kB / 443.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.2582, allocations: 141 kB / 443.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.2584, allocations: 154.7 kB / 443.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.2586, allocations: 90.06 kB / 443.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.2587, allocations: 342.8 kB / 444.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.2592, allocations: 156.8 kB / 444.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004938/0.2597, allocations: 225.9 kB / 444.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000803/0.2605, allocations: 339.2 kB / 445 MB, free: 9.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2605, allocations: 4 kB / 445 MB, free: 9.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001336/0.2618, allocations: 0.5435 MB / 445.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.2619, allocations: 14.27 kB / 445.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2619, allocations: 0 / 445.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009079/0.2628, allocations: 289.3 kB / 445.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.263, allocations: 59.89 kB / 445.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.2676, allocations: 2.789 MB / 448.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.2679, allocations: 28.08 kB / 448.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.215e-05/0.268, allocations: 19.98 kB / 448.7 MB, free: 6.043 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.0002128/0.2682, allocations: 149.8 kB / 448.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.374e-05/0.2683, allocations: 35.73 kB / 448.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.2684, allocations: 46.98 kB / 448.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.2684, allocations: 4 kB / 448.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2684, allocations: 3.938 kB / 448.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2684, allocations: 7.984 kB / 448.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/0.2706, allocations: 1.062 MB / 450 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2706, allocations: 0 / 450 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.2708, allocations: 55.89 kB / 450 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007989/0.2716, allocations: 277.1 kB / 450.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.2717, allocations: 11.98 kB / 450.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004221/0.2759, allocations: 2.759 MB / 453.1 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.2759, allocations: 3.984 kB / 453.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.2777, allocations: 0.7924 MB / 453.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.2778, allocations: 71.77 kB / 454 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.905e-05/0.2779, allocations: 20.06 kB / 454 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.2782, allocations: 23.98 kB / 454 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.2784, allocations: 67.86 kB / 454.1 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.531e-05/0.2784, allocations: 11.98 kB / 454.1 MB, free: 468 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000251/0.2786, allocations: 180.5 kB / 454.3 MB, free: 288 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2786, allocations: 0 / 454.3 MB, free: 288 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006405/0.2793, allocations: 143.8 kB / 454.4 MB, free: 144 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.00143/0.2807, allocations: 368.7 kB / 454.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.2822, allocations: 0.5939 MB / 455.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2822, allocations: 0 / 455.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008124/0.283, allocations: 421.9 kB / 455.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.2835, allocations: 47 kB / 455.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.285, allocations: 0.722 MB / 456.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/0.2855, allocations: 0.7762 MB / 457.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002429/0.2857, allocations: 70.92 kB / 457.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.2859, allocations: 39.41 kB / 457.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2859, allocations: 0 / 457.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of Templates: time 0.01607/0.3019, allocations: 8.077 MB / 465.5 MB, free: 5.082 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.678517489694059]