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.001317/0.001317, allocations: 103.6 kB / 21.19 MB, free: 0.5156 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.00199/0.00199, allocations: 213.9 kB / 24.48 MB, free: 3.832 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.479/1.479, allocations: 230.5 MB / 258.1 MB, free: 7.801 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.002148/0.002148, allocations: 71.88 kB / 379 MB, free: 2.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2764, allocations: 53.41 MB / 432.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004832/0.2812, allocations: 2.404 MB / 434.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.2836, allocations: 1.08 MB / 435.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.2839, allocations: 7.938 kB / 435.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003774/0.2843, allocations: 67.42 kB / 435.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007063/0.285, allocations: 186.5 kB / 436.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005643/0.2856, allocations: 183.6 kB / 436.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007934/0.2864, allocations: 0.5141 MB / 436.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.2866, allocations: 64.78 kB / 436.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000602/0.2872, allocations: 247.3 kB / 437.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004537/0.2876, allocations: 255.1 kB / 437.4 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.686e-05/0.2877, allocations: 40 kB / 437.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002963/0.288, allocations: 135.9 kB / 437.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.2882, allocations: 111.7 kB / 437.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.2883, allocations: 175.2 kB / 437.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007487/0.2891, allocations: 0.5479 MB / 438.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2891, allocations: 0 / 438.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2891, allocations: 0 / 438.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.2891, allocations: 8 kB / 438.4 MB, free: 0.5352 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.001407/0.2905, allocations: 0.6297 MB / 439 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.2906, allocations: 15.92 kB / 439 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004324/0.291, allocations: 68.67 kB / 439.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005882/0.2916, allocations: 254.6 kB / 439.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.2918, allocations: 152 kB / 439.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.561e-05/0.2918, allocations: 36.33 kB / 439.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008755/0.2927, allocations: 450.7 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.2927, allocations: 0 / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.064e-05/0.2928, allocations: 12 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.2928, allocations: 11.94 kB / 440 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.2938, allocations: 462.3 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.2956, allocations: 0.7923 MB / 441.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009233/0.2965, allocations: 384 kB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004875/0.297, allocations: 202.1 kB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.297, allocations: 4.438 kB / 441.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.2971, allocations: 39 kB / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.944e-06/0.2971, allocations: 0 / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005512/0.3026, allocations: 1.917 MB / 443.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/0.3027, allocations: 81.61 kB / 443.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.303, allocations: 251.7 kB / 444.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.3031, allocations: 41.64 kB / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3032, allocations: 141.1 kB / 444.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.3033, allocations: 206.3 kB / 444.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.3035, allocations: 86.17 kB / 444.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.3037, allocations: 338.8 kB / 444.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004725/0.3042, allocations: 196.9 kB / 445.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005348/0.3047, allocations: 269.6 kB / 445.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009028/0.3056, allocations: 379.4 kB / 445.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3056, allocations: 4.031 kB / 445.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00135/0.307, allocations: 0.5965 MB / 446.3 MB, free: 8.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.307, allocations: 4 kB / 446.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.307, allocations: 0 / 446.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008483/0.3078, allocations: 302.5 kB / 446.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003218/0.3082, allocations: 67.89 kB / 446.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0043/0.3125, allocations: 2.772 MB / 449.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.3128, allocations: 28 kB / 449.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.291e-05/0.3128, allocations: 23.98 kB / 449.5 MB, free: 5.023 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.000251/0.3131, allocations: 157.2 kB / 449.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.24e-05/0.3132, allocations: 39.7 kB / 449.7 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.3133, allocations: 55.3 kB / 449.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3133, allocations: 4 kB / 449.7 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3133, allocations: 0 / 449.7 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.3133, allocations: 3.984 kB / 449.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.3157, allocations: 1.121 MB / 450.9 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3157, allocations: 4.031 kB / 450.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.3161, allocations: 71.89 kB / 450.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007777/0.3168, allocations: 285.2 kB / 451.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.3169, allocations: 11.98 kB / 451.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004083/0.321, allocations: 2.677 MB / 453.9 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.321, allocations: 4.062 kB / 453.9 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.323, allocations: 0.9485 MB / 454.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.3232, allocations: 75.77 kB / 454.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.881e-05/0.3233, allocations: 12 kB / 454.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.3236, allocations: 27.97 kB / 455 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001945/0.3238, allocations: 76.36 kB / 455.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.3238, allocations: 31.91 kB / 455.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.3241, allocations: 185.5 kB / 455.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3241, allocations: 0 / 455.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006582/0.3247, allocations: 147.9 kB / 455.4 MB, free: 14.94 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.001523/0.3263, allocations: 397.8 kB / 455.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.3279, allocations: 0.6557 MB / 456.5 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3279, allocations: 4 kB / 456.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008989/0.3288, allocations: 460.1 kB / 456.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004798/0.3292, allocations: 59.77 kB / 457 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.331, allocations: 0.8531 MB / 457.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.3312, allocations: 186.9 kB / 458 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.3314, allocations: 47.39 kB / 458 MB, free: 12.32 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3314, allocations: 0 / 458 MB, free: 12.32 MB / 366.1 MB Notification: Performance of Templates: time 0.0117/0.3431, allocations: 6.791 MB / 464.8 MB, free: 5.543 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/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_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: 8.03642005706206]