Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001309/0.001309, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00141/0.00141, allocations: 206 kB / 23.73 MB, free: 4.523 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 55.86 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2466, allocations: 53.36 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004249/0.2509, allocations: 2.404 MB / 434 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.2531, allocations: 1.092 MB / 435.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.2532, allocations: 7.938 kB / 435.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.2535, allocations: 67.42 kB / 435.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005498/0.2541, allocations: 172.6 kB / 435.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.2546, allocations: 187.6 kB / 435.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006376/0.2552, allocations: 0.5063 MB / 436 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.2554, allocations: 65.12 kB / 436.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004215/0.2558, allocations: 247.3 kB / 436.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004048/0.2562, allocations: 283.1 kB / 436.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.632e-05/0.2563, allocations: 44 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002659/0.2566, allocations: 139.8 kB / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.2567, allocations: 115.7 kB / 436.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.2569, allocations: 171.3 kB / 437 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006743/0.2576, allocations: 0.5509 MB / 437.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2576, allocations: 0 / 437.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2576, allocations: 0 / 437.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2576, allocations: 4 kB / 437.6 MB, free: 0.668 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.001455/0.2591, allocations: 0.6375 MB / 438.2 MB, free: 0 / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.2591, allocations: 8.078 kB / 438.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004316/0.2595, allocations: 64.62 kB / 438.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005745/0.2601, allocations: 259.1 kB / 438.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.2603, allocations: 148 kB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.308e-05/0.2604, allocations: 36.33 kB / 438.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009265/0.2613, allocations: 450.7 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.2613, allocations: 3.984 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.489e-05/0.2614, allocations: 16 kB / 439.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.2614, allocations: 4 kB / 439.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.2625, allocations: 458.3 kB / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.2643, allocations: 0.8039 MB / 440.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009104/0.2652, allocations: 364.9 kB / 440.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/0.2657, allocations: 210.3 kB / 441 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.2657, allocations: 8.375 kB / 441 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.2658, allocations: 39 kB / 441.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/0.2658, allocations: 0 / 441.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005602/0.2714, allocations: 1.909 MB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.2714, allocations: 81.61 kB / 443 MB, free: 11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.2718, allocations: 247.8 kB / 443.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.2718, allocations: 37.7 kB / 443.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.2719, allocations: 145.1 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.2721, allocations: 202.3 kB / 443.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.2723, allocations: 90.17 kB / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.2725, allocations: 338.8 kB / 444.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004822/0.273, allocations: 196.9 kB / 444.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005484/0.2735, allocations: 269.7 kB / 444.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009041/0.2744, allocations: 387.3 kB / 444.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2744, allocations: 0 / 444.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001421/0.2758, allocations: 0.5965 MB / 445.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.2758, allocations: 8 kB / 445.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.2759, allocations: 3.938 kB / 445.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008912/0.2767, allocations: 310.4 kB / 445.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003483/0.2771, allocations: 67.89 kB / 445.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004559/0.2817, allocations: 2.762 MB / 448.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.282, allocations: 27.97 kB / 448.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.157e-05/0.2821, allocations: 23.98 kB / 448.7 MB, free: 5.16 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.0002444/0.2823, allocations: 157.8 kB / 448.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.95e-05/0.2824, allocations: 35.7 kB / 448.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.2825, allocations: 55.28 kB / 448.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2826, allocations: 4 kB / 449 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2826, allocations: 4.062 kB / 449 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.006e-06/0.2826, allocations: 3.984 kB / 449 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002434/0.285, allocations: 1.125 MB / 450.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.285, allocations: 0 / 450.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.2854, allocations: 71.89 kB / 450.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008087/0.2862, allocations: 284.6 kB / 450.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.2862, allocations: 15.98 kB / 450.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004039/0.2903, allocations: 2.688 MB / 453.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2903, allocations: 0 / 453.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/0.2923, allocations: 0.9486 MB / 454.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.2925, allocations: 79.77 kB / 454.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.852e-05/0.2925, allocations: 12 kB / 454.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003189/0.2929, allocations: 27.97 kB / 454.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.293, allocations: 72.3 kB / 454.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.2931, allocations: 27.91 kB / 454.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002496/0.2933, allocations: 189.4 kB / 454.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2933, allocations: 0 / 454.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006899/0.294, allocations: 156 kB / 454.6 MB, free: 15.06 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.001492/0.2955, allocations: 404.5 kB / 455 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.2971, allocations: 0.6635 MB / 455.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2971, allocations: 0 / 455.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008915/0.298, allocations: 460.2 kB / 456.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.2985, allocations: 53.31 kB / 456.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.3001, allocations: 0.8281 MB / 457 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.3003, allocations: 186.8 kB / 457.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002467/0.3005, allocations: 78.91 kB / 457.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3007, allocations: 43.39 kB / 457.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3007, allocations: 4 kB / 457.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of Templates: time 0.01483/0.3155, allocations: 7.926 MB / 465.3 MB, free: 4.539 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.865692804101855]