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.001871/0.001871, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001892/0.001892, allocations: 213.6 kB / 23.73 MB, free: 4.164 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.506/1.506, allocations: 230.5 MB / 257.4 MB, free: 7.82 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.00204/0.00204, allocations: 63.88 kB / 378.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2503, allocations: 53.41 MB / 431.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004667/0.255, allocations: 2.396 MB / 434 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002368/0.2574, allocations: 1.1 MB / 435.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.2575, allocations: 7.938 kB / 435.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003121/0.2578, allocations: 63.44 kB / 435.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005681/0.2584, allocations: 174.6 kB / 435.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.2589, allocations: 183.6 kB / 435.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007347/0.2596, allocations: 0.5141 MB / 436.1 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.2598, allocations: 61.14 kB / 436.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004111/0.2602, allocations: 239.3 kB / 436.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003783/0.2606, allocations: 251.2 kB / 436.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.037e-05/0.2607, allocations: 44 kB / 436.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003053/0.261, allocations: 135.9 kB / 436.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.2612, allocations: 119.6 kB / 436.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.2614, allocations: 171.3 kB / 437.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007984/0.2622, allocations: 0.55 MB / 437.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2622, allocations: 0 / 437.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2622, allocations: 4 kB / 437.6 MB, free: 0.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.2622, allocations: 3.938 kB / 437.6 MB, free: 0.5391 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.00151/0.2637, allocations: 0.6375 MB / 438.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.2638, allocations: 15.98 kB / 438.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004322/0.2642, allocations: 64.67 kB / 438.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006333/0.2648, allocations: 262.5 kB / 438.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.265, allocations: 144 kB / 438.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.22e-05/0.2651, allocations: 36.33 kB / 438.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009348/0.266, allocations: 454.7 kB / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.2661, allocations: 0 / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.2661, allocations: 16 kB / 439.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.2661, allocations: 8 kB / 439.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.2672, allocations: 458.3 kB / 439.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.269, allocations: 0.7922 MB / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008988/0.2699, allocations: 380.1 kB / 440.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004982/0.2704, allocations: 210.1 kB / 441 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.2704, allocations: 4.438 kB / 441 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.2704, allocations: 43 kB / 441.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.2704, allocations: 0 / 441.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005595/0.276, allocations: 1.909 MB / 443 MB, free: 10.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.515e-05/0.2761, allocations: 81.61 kB / 443.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.2765, allocations: 255.8 kB / 443.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.2765, allocations: 37.7 kB / 443.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.2767, allocations: 141.1 kB / 443.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.2768, allocations: 194.3 kB / 443.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.277, allocations: 94.16 kB / 443.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.2772, allocations: 338.8 kB / 444.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004976/0.2777, allocations: 192.8 kB / 444.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005477/0.2782, allocations: 265.7 kB / 444.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009396/0.2792, allocations: 387.4 kB / 444.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2792, allocations: 0 / 444.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001435/0.2806, allocations: 0.5965 MB / 445.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.2806, allocations: 4 kB / 445.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.2807, allocations: 4 kB / 445.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009063/0.2816, allocations: 306.5 kB / 445.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003417/0.2819, allocations: 67.88 kB / 445.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004398/0.2863, allocations: 2.771 MB / 448.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.2866, allocations: 27.94 kB / 448.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.2867, allocations: 28.05 kB / 448.7 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.0002478/0.2869, allocations: 153.8 kB / 448.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.287, allocations: 39.7 kB / 448.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.2872, allocations: 47.3 kB / 449 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.2872, allocations: 7.938 kB / 449 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2872, allocations: 3.938 kB / 449 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.2872, allocations: 7.984 kB / 449 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.2896, allocations: 1.121 MB / 450.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2896, allocations: 0 / 450.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.2899, allocations: 71.88 kB / 450.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007694/0.2907, allocations: 285.2 kB / 450.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.2907, allocations: 15.98 kB / 450.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003959/0.2947, allocations: 2.673 MB / 453.2 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2947, allocations: 0 / 453.2 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/0.2967, allocations: 0.9369 MB / 454.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.2969, allocations: 87.73 kB / 454.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/0.297, allocations: 20.06 kB / 454.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/0.2973, allocations: 27.97 kB / 454.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.2975, allocations: 76.23 kB / 454.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/0.2975, allocations: 23.92 kB / 454.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002593/0.2978, allocations: 185.5 kB / 454.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2978, allocations: 0 / 454.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006949/0.2985, allocations: 155.9 kB / 454.7 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.001518/0.3, allocations: 403.8 kB / 455 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.3015, allocations: 0.6596 MB / 455.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3015, allocations: 0 / 455.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009003/0.3024, allocations: 460.1 kB / 456.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.3029, allocations: 57.89 kB / 456.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.3046, allocations: 0.8164 MB / 457 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.3048, allocations: 194.8 kB / 457.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002638/0.305, allocations: 78.91 kB / 457.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.3052, allocations: 39.41 kB / 457.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3052, allocations: 0 / 457.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of Templates: time 0.01462/0.3198, allocations: 7.822 MB / 465.2 MB, free: 4.5 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.914239037781954]