Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001575/0.001575, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.002054/0.002054, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.52/1.52, allocations: 230.2 MB / 255.1 MB, free: 15.25 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 59.91 kB / 374.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1102, allocations: 53.32 MB / 427.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004187/0.1144, allocations: 2.475 MB / 430.3 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.1164, allocations: 1.053 MB / 431.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.1165, allocations: 7.938 kB / 431.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.1168, allocations: 59.5 kB / 431.4 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004314/0.1172, allocations: 162.7 kB / 431.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.1176, allocations: 159.7 kB / 431.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005412/0.1181, allocations: 470.7 kB / 432.2 MB, free: 120 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.1183, allocations: 44.73 kB / 432.2 MB, free: 76 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2/0.3183, allocations: 203.8 kB / 432.4 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004618/0.3187, allocations: 250 kB / 432.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.294e-05/0.3188, allocations: 37.12 kB / 432.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003301/0.3191, allocations: 134.3 kB / 432.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.3193, allocations: 106 kB / 432.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.3195, allocations: 173.8 kB / 433.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005854/0.32, allocations: 0.4924 MB / 433.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3201, allocations: 3.312 kB / 433.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3201, allocations: 0 / 433.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.3201, allocations: 1.031 kB / 433.6 MB, free: 8.105 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.001091/0.3212, allocations: 0.6696 MB / 434.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.3212, allocations: 10.66 kB / 434.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003071/0.3215, allocations: 53.97 kB / 434.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.3219, allocations: 303 kB / 434.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.3221, allocations: 87.81 kB / 434.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.3221, allocations: 30.98 kB / 434.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.3228, allocations: 385.1 kB / 435.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.3228, allocations: 6.047 kB / 435.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.3228, allocations: 9.312 kB / 435.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.3228, allocations: 7.438 kB / 435.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.3237, allocations: 414.4 kB / 435.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.3256, allocations: 1.27 MB / 436.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006943/0.3263, allocations: 320.9 kB / 437.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003646/0.3267, allocations: 166 kB / 437.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.3267, allocations: 12.94 kB / 437.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.3267, allocations: 37.25 kB / 437.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.3267, allocations: 0 / 437.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.0048/0.3315, allocations: 1.895 MB / 439.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.3316, allocations: 90.06 kB / 439.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.3319, allocations: 247.2 kB / 439.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.3319, allocations: 33.73 kB / 439.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.697e-05/0.332, allocations: 141.4 kB / 439.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.3321, allocations: 159.5 kB / 439.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.3322, allocations: 88.88 kB / 440 MB, free: 5.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.336e-05/0.3323, allocations: 337.5 kB / 440.3 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.3327, allocations: 163.6 kB / 440.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.3331, allocations: 228.1 kB / 440.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006744/0.3337, allocations: 338.8 kB / 441 MB, free: 4.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3337, allocations: 1.219 kB / 441 MB, free: 4.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001147/0.3349, allocations: 0.5366 MB / 441.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3349, allocations: 6.719 kB / 441.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3349, allocations: 2.938 kB / 441.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008163/0.3357, allocations: 300.4 kB / 441.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.336, allocations: 53.69 kB / 441.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003673/0.3397, allocations: 2.896 MB / 444.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.34, allocations: 26.44 kB / 444.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.845e-05/0.34, allocations: 19.7 kB / 444.9 MB, free: 2.25 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.0001885/0.3402, allocations: 159 kB / 445 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.3403, allocations: 28.12 kB / 445 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.344e-05/0.3404, allocations: 43.58 kB / 445.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3404, allocations: 4.938 kB / 445.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3404, allocations: 5.672 kB / 445.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.3404, allocations: 3.531 kB / 445.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.3422, allocations: 1.105 MB / 446.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3422, allocations: 1.062 kB / 446.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.3424, allocations: 43.81 kB / 446.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007459/0.3432, allocations: 279.8 kB / 446.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.3432, allocations: 11.16 kB / 446.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003652/0.3469, allocations: 2.861 MB / 449.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3469, allocations: 0.8438 kB / 449.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.3486, allocations: 0.8029 MB / 450.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001998/0.3488, allocations: 145.5 kB / 450.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.373e-05/0.3488, allocations: 17.47 kB / 450.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.3491, allocations: 24.98 kB / 450.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.3493, allocations: 64.91 kB / 450.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.279e-05/0.3493, allocations: 19.78 kB / 450.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.3496, allocations: 183.8 kB / 450.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3496, allocations: 0 / 450.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006803/0.3502, allocations: 137 kB / 450.8 MB, free: 14.52 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.001342/0.3516, allocations: 382.4 kB / 451.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.353, allocations: 0.5916 MB / 451.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.353, allocations: 4.062 kB / 451.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007851/0.3538, allocations: 415.4 kB / 452.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.3542, allocations: 42.3 kB / 452.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.3557, allocations: 0.7413 MB / 452.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.3562, allocations: 0.7781 MB / 453.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.3563, allocations: 41.58 kB / 453.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3563, allocations: 0 / 453.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of Templates: time 0.01026/0.3666, allocations: 5.944 MB / 459.7 MB, free: 10.89 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.05779316695407]