Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001299/0.001299, allocations: 112.3 kB / 21.18 MB, free: 0.6289 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.001374/0.001374, allocations: 210.4 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.428/1.428, allocations: 230.4 MB / 258.1 MB, free: 8.152 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.83 kB / 378.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2186, allocations: 53.32 MB / 432.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004197/0.2228, allocations: 2.556 MB / 434.6 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.2248, allocations: 1.158 MB / 435.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.225, allocations: 8 kB / 435.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002732/0.2253, allocations: 63.44 kB / 435.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004909/0.2258, allocations: 167.8 kB / 436 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004433/0.2262, allocations: 191.6 kB / 436.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006209/0.2268, allocations: 0.5141 MB / 436.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.227, allocations: 60.95 kB / 436.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.2274, allocations: 243.3 kB / 437 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004054/0.2278, allocations: 271.1 kB / 437.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.327e-05/0.2279, allocations: 44 kB / 437.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002617/0.2281, allocations: 143.9 kB / 437.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.2283, allocations: 111.7 kB / 437.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.2285, allocations: 210.9 kB / 437.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006943/0.2292, allocations: 0.5429 MB / 438.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.2292, allocations: 0 / 438.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2292, allocations: 0 / 438.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.2292, allocations: 0 / 438.3 MB, free: 1.125 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.001467/0.2307, allocations: 0.7205 MB / 439 MB, free: 364 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.2307, allocations: 8.031 kB / 439 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004172/0.2311, allocations: 64.67 kB / 439.1 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005749/0.2317, allocations: 324.1 kB / 439.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.2318, allocations: 92.61 kB / 439.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.339e-05/0.2319, allocations: 36.33 kB / 439.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008846/0.2328, allocations: 421 kB / 439.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.2328, allocations: 4 kB / 440 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/0.2329, allocations: 16 kB / 440 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2329, allocations: 4 kB / 440 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.234, allocations: 478.2 kB / 440.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.2359, allocations: 0.9893 MB / 441.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009259/0.2368, allocations: 372.6 kB / 441.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005176/0.2373, allocations: 206.1 kB / 442 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.2374, allocations: 8.438 kB / 442 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.2374, allocations: 43 kB / 442 MB, free: 13.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.783e-06/0.2374, allocations: 0 / 442 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005786/0.2432, allocations: 2.145 MB / 444.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.2433, allocations: 85.67 kB / 444.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/0.2436, allocations: 269 kB / 444.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.2437, allocations: 37.7 kB / 444.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.932e-05/0.2438, allocations: 141.2 kB / 444.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.2439, allocations: 190.4 kB / 444.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.2441, allocations: 94.22 kB / 445 MB, free: 10.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.2443, allocations: 342.8 kB / 445.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/0.2448, allocations: 193 kB / 445.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005357/0.2453, allocations: 248.6 kB / 445.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009265/0.2462, allocations: 380.4 kB / 446.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2462, allocations: 0 / 446.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001417/0.2476, allocations: 0.6018 MB / 446.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2477, allocations: 4 kB / 446.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2477, allocations: 7.938 kB / 446.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008601/0.2485, allocations: 298.5 kB / 447 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003438/0.2489, allocations: 67.89 kB / 447.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004341/0.2532, allocations: 2.945 MB / 450 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.2535, allocations: 27.97 kB / 450.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.334e-05/0.2536, allocations: 27.92 kB / 450.1 MB, free: 4.82 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.0002214/0.2538, allocations: 161.8 kB / 450.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.2539, allocations: 35.75 kB / 450.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.254, allocations: 51.56 kB / 450.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.254, allocations: 3.984 kB / 450.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.254, allocations: 0 / 450.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.2542, allocations: 160.8 kB / 450.5 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.393e-05/0.2543, allocations: 8 kB / 450.5 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/0.2547, allocations: 35.97 kB / 450.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.2548, allocations: 52.42 kB / 450.6 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002248/0.257, allocations: 0.7804 MB / 451.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001856/0.2589, allocations: 0.9162 MB / 452.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005085/0.2594, allocations: 204.3 kB / 452.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.2597, allocations: 200.5 kB / 452.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of Backend: time 4.2e-07/0.2597, allocations: 0 / 452.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00331/0.263, allocations: 1.01 MB / 453.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of SimCode: time 0.00164/0.2646, allocations: 1.316 MB / 455 MB, free: 4 kB / 350.1 MB Notification: Performance of Templates: time 0.01536/0.28, allocations: 8.78 MB / 463.8 MB, free: 7.246 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.423483751248568]