Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.00132/0.00132, allocations: 112.5 kB / 18.45 MB, free: 4.605 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.001416/0.001416, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.48/1.48, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 47.94 kB / 374.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1109, allocations: 53.32 MB / 427.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005154/0.116, allocations: 2.47 MB / 429.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1184, allocations: 1.053 MB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.1187, allocations: 7.938 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003889/0.1191, allocations: 63.5 kB / 431.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006515/0.1197, allocations: 148 kB / 431.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.1203, allocations: 167.7 kB / 431.4 MB, free: 388 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.212/0.3322, allocations: 466.5 kB / 431.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.3325, allocations: 49.36 kB / 431.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004946/0.333, allocations: 210.9 kB / 432.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005752/0.3336, allocations: 248.5 kB / 432.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001778/0.3337, allocations: 37.5 kB / 432.4 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004503/0.3342, allocations: 129.7 kB / 432.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.3344, allocations: 108.6 kB / 432.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002474/0.3346, allocations: 175.6 kB / 432.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007953/0.3354, allocations: 0.4968 MB / 433.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3354, allocations: 0 / 433.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3354, allocations: 1.875 kB / 433.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.884e-06/0.3354, allocations: 3.375 kB / 433.3 MB, free: 8.492 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001183/0.3366, allocations: 0.6564 MB / 433.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3366, allocations: 10.22 kB / 433.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.337, allocations: 53.89 kB / 434 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/0.3375, allocations: 308.6 kB / 434.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.3376, allocations: 87.48 kB / 434.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/0.3376, allocations: 39.62 kB / 434.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007172/0.3383, allocations: 385.4 kB / 434.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.3384, allocations: 5.406 kB / 434.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.91e-05/0.3384, allocations: 11.03 kB / 434.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.3384, allocations: 6.25 kB / 434.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009006/0.3393, allocations: 415.8 kB / 435.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.3414, allocations: 1.263 MB / 436.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007159/0.3421, allocations: 315 kB / 436.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004034/0.3425, allocations: 168.3 kB / 436.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.3425, allocations: 16.05 kB / 437 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.3425, allocations: 37.52 kB / 437 MB, free: 7.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.155e-06/0.3425, allocations: 0 / 437 MB, free: 7.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004973/0.3475, allocations: 1.893 MB / 438.9 MB, free: 6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.3476, allocations: 85.95 kB / 439 MB, free: 5.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000319/0.3479, allocations: 251.8 kB / 439.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.3479, allocations: 37.56 kB / 439.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.958e-05/0.348, allocations: 141.7 kB / 439.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.88e-05/0.3481, allocations: 163.3 kB / 439.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.3482, allocations: 88.12 kB / 439.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.876e-05/0.3483, allocations: 333.3 kB / 440 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.3487, allocations: 164.1 kB / 440.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/0.3491, allocations: 232.2 kB / 440.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006909/0.3498, allocations: 340.2 kB / 440.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3498, allocations: 1.125 kB / 440.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001181/0.351, allocations: 0.5351 MB / 441.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.351, allocations: 6.438 kB / 441.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.351, allocations: 3.938 kB / 441.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008633/0.3519, allocations: 293.1 kB / 441.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.3521, allocations: 57.45 kB / 441.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003644/0.3558, allocations: 2.893 MB / 444.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.3561, allocations: 22.45 kB / 444.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.825e-05/0.3562, allocations: 20.2 kB / 444.5 MB, free: 2.285 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001949/0.3563, allocations: 162.7 kB / 444.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.039e-05/0.3564, allocations: 31.12 kB / 444.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.867e-05/0.3565, allocations: 43.05 kB / 444.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3565, allocations: 4.188 kB / 444.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3565, allocations: 1.578 kB / 444.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3566, allocations: 2.109 kB / 444.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/0.3585, allocations: 1.103 MB / 445.9 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.3585, allocations: 1.062 kB / 445.9 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.3587, allocations: 47.44 kB / 445.9 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007642/0.3595, allocations: 277.1 kB / 446.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.203e-05/0.3595, allocations: 16.16 kB / 446.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003726/0.3632, allocations: 2.862 MB / 449 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3633, allocations: 0 / 449 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.3649, allocations: 0.801 MB / 449.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.3651, allocations: 145.8 kB / 450 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.387e-05/0.3652, allocations: 18.94 kB / 450 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.3655, allocations: 22.47 kB / 450 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.3657, allocations: 63.14 kB / 450.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/0.3657, allocations: 22.92 kB / 450.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002765/0.366, allocations: 185.2 kB / 450.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.366, allocations: 0 / 450.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007216/0.3667, allocations: 136.8 kB / 450.4 MB, free: 14.58 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.001401/0.3681, allocations: 394.8 kB / 450.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.3695, allocations: 0.5907 MB / 451.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3695, allocations: 4.25 kB / 451.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008194/0.3703, allocations: 411.7 kB / 451.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.3708, allocations: 42.11 kB / 451.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.3723, allocations: 0.7402 MB / 452.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.3728, allocations: 0.7786 MB / 453.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.373, allocations: 42.34 kB / 453.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.373, allocations: 0 / 453.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of Templates: time 0.01047/0.3834, allocations: 5.952 MB / 459.4 MB, free: 10.89 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.137623190996237]