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.001807/0.001807, allocations: 121.4 kB / 18.5 MB, free: 4.52 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.00262/0.00262, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.466/1.466, allocations: 230.2 MB / 254.5 MB, free: 15.23 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.001864/0.001864, allocations: 63.89 kB / 373.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1184, allocations: 53.32 MB / 427.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004242/0.1226, allocations: 2.551 MB / 429.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.1247, allocations: 1.139 MB / 430.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.1249, allocations: 4 kB / 430.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003093/0.1252, allocations: 67.42 kB / 430.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005252/0.1257, allocations: 182.5 kB / 431.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.1261, allocations: 175.7 kB / 431.3 MB, free: 356 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2029/0.3291, allocations: 0.5132 MB / 431.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.3293, allocations: 66.8 kB / 431.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.3298, allocations: 236.2 kB / 432.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003524/0.3301, allocations: 281.3 kB / 432.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.807e-05/0.3302, allocations: 43.31 kB / 432.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002811/0.3305, allocations: 140.5 kB / 432.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.3306, allocations: 116.4 kB / 432.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.3308, allocations: 196.4 kB / 432.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005317/0.3313, allocations: 0.5483 MB / 433.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3313, allocations: 4.469 kB / 433.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3313, allocations: 0 / 433.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.3313, allocations: 0 / 433.4 MB, free: 7.965 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001164/0.3325, allocations: 0.7122 MB / 434.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.3325, allocations: 9.75 kB / 434.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.3329, allocations: 62.45 kB / 434.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.3334, allocations: 319.2 kB / 434.5 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.3335, allocations: 95.2 kB / 434.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.73e-05/0.3336, allocations: 38.08 kB / 434.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007769/0.3343, allocations: 422.5 kB / 435 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.3343, allocations: 2.188 kB / 435 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.969e-05/0.3344, allocations: 13.31 kB / 435 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3344, allocations: 7.656 kB / 435 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.3354, allocations: 475.1 kB / 435.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.3371, allocations: 0.9864 MB / 436.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008677/0.338, allocations: 374.1 kB / 436.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004681/0.3385, allocations: 204.3 kB / 437 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-05/0.3385, allocations: 9.859 kB / 437.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.3385, allocations: 37.59 kB / 437.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.234e-06/0.3385, allocations: 0 / 437.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005248/0.3438, allocations: 2.152 MB / 439.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.3438, allocations: 84.08 kB / 439.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.3441, allocations: 270.1 kB / 439.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.3442, allocations: 37.3 kB / 439.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.937e-05/0.3442, allocations: 143.5 kB / 439.8 MB, free: 5.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.3444, allocations: 193.2 kB / 440 MB, free: 5.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.3445, allocations: 92.94 kB / 440 MB, free: 5.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.818e-05/0.3446, allocations: 342.9 kB / 440.4 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.345, allocations: 192 kB / 440.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004834/0.3455, allocations: 240 kB / 440.8 MB, free: 4.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008503/0.3464, allocations: 392.5 kB / 441.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3464, allocations: 1.25 kB / 441.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001368/0.3477, allocations: 0.5951 MB / 441.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3478, allocations: 5.766 kB / 441.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3478, allocations: 5.125 kB / 441.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008568/0.3486, allocations: 308 kB / 442.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003266/0.349, allocations: 66.83 kB / 442.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003549/0.3525, allocations: 2.941 MB / 445.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.3528, allocations: 29.67 kB / 445.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.3529, allocations: 19.31 kB / 445.1 MB, free: 1.984 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.0001922/0.3531, allocations: 159.5 kB / 445.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.079e-05/0.3532, allocations: 40.45 kB / 445.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.991e-05/0.3533, allocations: 48.7 kB / 445.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.3533, allocations: 5.406 kB / 445.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3533, allocations: 0 / 445.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3533, allocations: 3.672 kB / 445.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.3555, allocations: 1.29 MB / 446.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.3555, allocations: 0 / 446.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003288/0.3558, allocations: 67.5 kB / 446.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007049/0.3565, allocations: 285.7 kB / 447 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/0.3566, allocations: 17.89 kB / 447.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003808/0.3604, allocations: 2.856 MB / 449.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3604, allocations: 3.078 kB / 449.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.3624, allocations: 0.9444 MB / 450.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.3626, allocations: 158.6 kB / 451 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.687e-05/0.3627, allocations: 14.48 kB / 451 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.363, allocations: 32.23 kB / 451.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002158/0.3632, allocations: 74.02 kB / 451.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.3633, allocations: 19.48 kB / 451.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000286/0.3635, allocations: 201 kB / 451.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3635, allocations: 1.281 kB / 451.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007008/0.3642, allocations: 149.3 kB / 451.5 MB, free: 14.09 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.001433/0.3657, allocations: 378.2 kB / 451.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.3673, allocations: 0.6731 MB / 452.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3673, allocations: 0 / 452.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008928/0.3681, allocations: 470.1 kB / 453 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004747/0.3686, allocations: 45.59 kB / 453 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.3703, allocations: 0.8211 MB / 453.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/0.3708, allocations: 0.7955 MB / 454.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002507/0.371, allocations: 72.94 kB / 454.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.3712, allocations: 41.62 kB / 454.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3712, allocations: 0 / 454.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of Templates: time 0.01539/0.3865, allocations: 8.414 MB / 463.2 MB, free: 8.945 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.780997111462057]