Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001405/0.001405, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001443/0.001443, allocations: 213.3 kB / 24.54 MB, free: 4.016 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.526/1.526, allocations: 230.3 MB / 258 MB, free: 8.273 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 63.89 kB / 378.7 MB, free: 2.809 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2411, allocations: 53.36 MB / 432.1 MB, free: 7.105 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004181/0.2453, allocations: 2.563 MB / 434.7 MB, free: 4.535 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002059/0.2474, allocations: 1.158 MB / 435.8 MB, free: 3.371 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.2475, allocations: 7.938 kB / 435.8 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000326/0.2479, allocations: 71.36 kB / 435.9 MB, free: 3.293 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004676/0.2483, allocations: 175.4 kB / 436.1 MB, free: 3.125 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.2487, allocations: 183.6 kB / 436.3 MB, free: 2.945 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005768/0.2493, allocations: 0.518 MB / 436.8 MB, free: 2.426 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.2495, allocations: 61.14 kB / 436.8 MB, free: 2.359 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003575/0.2498, allocations: 247.3 kB / 437.1 MB, free: 2.117 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000363/0.2502, allocations: 279.1 kB / 437.3 MB, free: 1.844 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.628e-05/0.2503, allocations: 40 kB / 437.4 MB, free: 1.805 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.2505, allocations: 139.9 kB / 437.5 MB, free: 1.668 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000153/0.2507, allocations: 115.7 kB / 437.6 MB, free: 1.555 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.2509, allocations: 207 kB / 437.8 MB, free: 1.352 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0006738/0.2516, allocations: 0.5466 MB / 438.4 MB, free: 0.8086 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2516, allocations: 0 / 438.4 MB, free: 0.8086 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.323e-06/0.2516, allocations: 3.938 kB / 438.4 MB, free: 0.8047 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.244e-06/0.2516, allocations: 0 / 438.4 MB, free: 0.8047 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.001425/0.253, allocations: 0.6375 MB / 439 MB, free: 140 kB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.253, allocations: 15.97 kB / 439 MB, free: 124 kB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004095/0.2535, allocations: 60.67 kB / 439.1 MB, free: 64 kB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.254, allocations: 254.6 kB / 439.4 MB, free: 15.79 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.2542, allocations: 104.5 kB / 439.5 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.682e-05/0.2542, allocations: 36.33 kB / 439.5 MB, free: 15.64 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008977/0.2551, allocations: 417 kB / 439.9 MB, free: 15.22 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.2552, allocations: 0 / 439.9 MB, free: 15.22 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.034e-05/0.2552, allocations: 12 kB / 439.9 MB, free: 15.21 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.2552, allocations: 11.98 kB / 439.9 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.2563, allocations: 470.3 kB / 440.4 MB, free: 14.74 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/0.2582, allocations: 0.932 MB / 441.3 MB, free: 13.77 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.2591, allocations: 379.6 kB / 441.7 MB, free: 13.39 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004987/0.2596, allocations: 206.1 kB / 441.9 MB, free: 13.18 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.2597, allocations: 8.422 kB / 441.9 MB, free: 13.18 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.2597, allocations: 39 kB / 441.9 MB, free: 13.13 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=49): time 1.723e-06/0.2597, allocations: 0 / 441.9 MB, free: 13.13 MB / 350.1 MB
Notification: Performance of matching and sorting (n=55): time 0.005886/0.2656, allocations: 1.913 MB / 443.8 MB, free: 11.16 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.601e-05/0.2657, allocations: 85.61 kB / 443.9 MB, free: 11.06 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004167/0.2661, allocations: 272.9 kB / 444.2 MB, free: 10.78 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.346e-05/0.2661, allocations: 41.64 kB / 444.2 MB, free: 10.73 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.2663, allocations: 141.2 kB / 444.4 MB, free: 10.59 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.2664, allocations: 186.4 kB / 444.6 MB, free: 10.41 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.2666, allocations: 94.16 kB / 444.6 MB, free: 10.31 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002568/0.2669, allocations: 342.8 kB / 445 MB, free: 9.965 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.2674, allocations: 196.8 kB / 445.2 MB, free: 9.773 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/0.2679, allocations: 240 kB / 445.4 MB, free: 9.531 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009556/0.2689, allocations: 383.3 kB / 445.8 MB, free: 9.156 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2689, allocations: 4.031 kB / 445.8 MB, free: 9.152 MB / 350.1 MB
Notification: Performance of matching and sorting (n=59) (initialization): time 0.001415/0.2703, allocations: 0.6004 MB / 446.4 MB, free: 8.539 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.2703, allocations: 11.94 kB / 446.4 MB, free: 8.527 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2703, allocations: 0 / 446.4 MB, free: 8.527 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0009044/0.2712, allocations: 298.5 kB / 446.7 MB, free: 8.234 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.2716, allocations: 79.89 kB / 446.8 MB, free: 8.156 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.2761, allocations: 2.841 MB / 449.6 MB, free: 5.199 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.2764, allocations: 31.98 kB / 449.6 MB, free: 5.168 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.2765, allocations: 23.98 kB / 449.7 MB, free: 5.145 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.0002368/0.2767, allocations: 157.7 kB / 449.8 MB, free: 4.98 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.886e-05/0.2768, allocations: 39.81 kB / 449.9 MB, free: 4.941 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.2769, allocations: 51.61 kB / 449.9 MB, free: 4.895 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.2769, allocations: 8 kB / 449.9 MB, free: 4.887 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.2769, allocations: 0 / 449.9 MB, free: 4.887 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.2769, allocations: 3.984 kB / 449.9 MB, free: 4.883 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.2795, allocations: 1.246 MB / 451.2 MB, free: 3.582 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.2795, allocations: 0 / 451.2 MB, free: 3.582 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004058/0.2799, allocations: 67.89 kB / 451.2 MB, free: 3.516 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0008933/0.2808, allocations: 285.3 kB / 451.5 MB, free: 3.234 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.133e-05/0.2808, allocations: 15.98 kB / 451.5 MB, free: 3.219 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0044/0.2852, allocations: 2.758 MB / 454.3 MB, free: 360 kB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2852, allocations: 0 / 454.3 MB, free: 360 kB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.2873, allocations: 0.941 MB / 455.2 MB, free: 15.39 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001953/0.2875, allocations: 83.72 kB / 455.3 MB, free: 15.3 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.271e-05/0.2875, allocations: 15.94 kB / 455.3 MB, free: 15.29 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003444/0.2879, allocations: 32.03 kB / 455.3 MB, free: 15.26 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.2881, allocations: 72.3 kB / 455.4 MB, free: 15.18 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.2881, allocations: 19.98 kB / 455.4 MB, free: 15.16 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002792/0.2884, allocations: 208.4 kB / 455.6 MB, free: 14.96 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.2884, allocations: 0 / 455.6 MB, free: 14.96 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0006862/0.2891, allocations: 155.9 kB / 455.8 MB, free: 14.81 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.001402/0.2905, allocations: 377.2 kB / 456.2 MB, free: 14.55 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001668/0.2921, allocations: 0.6596 MB / 456.8 MB, free: 13.88 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2921, allocations: 0 / 456.8 MB, free: 13.88 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000948/0.2931, allocations: 468.1 kB / 457.3 MB, free: 13.41 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004932/0.2936, allocations: 48.42 kB / 457.3 MB, free: 13.36 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.2953, allocations: 0.8048 MB / 458.1 MB, free: 12.52 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000522/0.2958, allocations: 0.8046 MB / 458.9 MB, free: 11.69 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0002679/0.2961, allocations: 78.91 kB / 459 MB, free: 11.61 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.2962, allocations: 43.34 kB / 459.1 MB, free: 11.57 MB / 366.1 MB
Notification: Performance of SimCode: time 6.51e-07/0.2962, allocations: 0 / 459.1 MB, free: 11.57 MB / 366.1 MB
Notification: Performance of Templates: time 0.01636/0.3126, allocations: 8.799 MB / 467.9 MB, free: 2.789 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.8116635559126735]