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.00204/0.00204, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002711/0.002711, allocations: 214 kB / 23.73 MB, free: 4.406 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.503/1.503, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.002022/0.002022, allocations: 63.91 kB / 378.2 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.291, allocations: 53.41 MB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004126/0.2951, allocations: 2.326 MB / 433.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.2971, allocations: 1.018 MB / 435 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.2972, allocations: 3.938 kB / 435 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.2975, allocations: 63.5 kB / 435 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005136/0.298, allocations: 158.7 kB / 435.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004263/0.2985, allocations: 171.6 kB / 435.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005893/0.2991, allocations: 466.7 kB / 435.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.2992, allocations: 40.91 kB / 435.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003077/0.2995, allocations: 211.4 kB / 436.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003731/0.2999, allocations: 227.2 kB / 436.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.53e-05/0.3, allocations: 40 kB / 436.3 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002629/0.3002, allocations: 127.9 kB / 436.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.3004, allocations: 107.7 kB / 436.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.3005, allocations: 151.4 kB / 436.7 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006299/0.3012, allocations: 0.4965 MB / 437.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3012, allocations: 0 / 437.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3012, allocations: 0 / 437.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3012, allocations: 0 / 437.2 MB, free: 0.9297 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00123/0.3024, allocations: 0.5984 MB / 437.8 MB, free: 308 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3024, allocations: 15.98 kB / 437.8 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003158/0.3028, allocations: 44.73 kB / 437.9 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005499/0.3033, allocations: 247.3 kB / 438.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.3035, allocations: 148 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.3036, allocations: 28.38 kB / 438.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007762/0.3043, allocations: 416.5 kB / 438.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.3044, allocations: 7.938 kB / 438.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.3044, allocations: 12 kB / 438.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.3044, allocations: 8 kB / 438.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009003/0.3053, allocations: 410.2 kB / 439.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002135/0.3074, allocations: 1.076 MB / 440.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000726/0.3082, allocations: 337 kB / 440.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003847/0.3085, allocations: 164.8 kB / 440.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.3086, allocations: 8.719 kB / 440.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.3086, allocations: 38.56 kB / 440.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.954e-06/0.3086, allocations: 4 kB / 440.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004826/0.3134, allocations: 1.66 MB / 442.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.3135, allocations: 88.84 kB / 442.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.3138, allocations: 250.8 kB / 442.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.3139, allocations: 37.7 kB / 442.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.314, allocations: 136.8 kB / 442.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.3141, allocations: 158.7 kB / 443 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.3143, allocations: 94 kB / 443.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3144, allocations: 334.8 kB / 443.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.3148, allocations: 164.7 kB / 443.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004532/0.3153, allocations: 255.6 kB / 443.9 MB, free: 9.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007377/0.316, allocations: 339.2 kB / 444.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.316, allocations: 0 / 444.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001181/0.3172, allocations: 0.5357 MB / 444.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3172, allocations: 12.11 kB / 444.7 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.3172, allocations: 4 kB / 444.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008458/0.3181, allocations: 289.3 kB / 445 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.3183, allocations: 59.89 kB / 445.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004147/0.3225, allocations: 2.709 MB / 447.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.3227, allocations: 32.03 kB / 447.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.3228, allocations: 19.94 kB / 447.8 MB, free: 5.844 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.0001849/0.323, allocations: 153.8 kB / 448 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.323, allocations: 27.81 kB / 448 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.463e-05/0.3231, allocations: 42.98 kB / 448.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3231, allocations: 4 kB / 448.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.3231, allocations: 4 kB / 448.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3231, allocations: 0 / 448.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/0.3251, allocations: 0.9765 MB / 449 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3251, allocations: 3.984 kB / 449.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.3253, allocations: 51.91 kB / 449.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000745/0.326, allocations: 281.1 kB / 449.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.3261, allocations: 11.98 kB / 449.4 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003873/0.33, allocations: 2.679 MB / 452.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.33, allocations: 0 / 452.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.3316, allocations: 0.7962 MB / 452.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.3317, allocations: 67.81 kB / 452.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.3318, allocations: 15.98 kB / 452.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.3321, allocations: 19.98 kB / 453 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.3322, allocations: 71.98 kB / 453 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.74e-05/0.3322, allocations: 23.92 kB / 453.1 MB, free: 468 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.3325, allocations: 180.5 kB / 453.2 MB, free: 288 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3325, allocations: 0 / 453.2 MB, free: 288 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005924/0.3331, allocations: 135.9 kB / 453.4 MB, free: 152 kB / 350.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.001518/0.3346, allocations: 405 kB / 453.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.3359, allocations: 0.5899 MB / 454.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3359, allocations: 4.25 kB / 454.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007542/0.3367, allocations: 421.9 kB / 454.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.3371, allocations: 39 kB / 454.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.3385, allocations: 0.7182 MB / 455.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.3387, allocations: 171.8 kB / 455.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002217/0.3389, allocations: 74.86 kB / 455.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.339, allocations: 39.41 kB / 455.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.339, allocations: 0 / 455.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of Templates: time 0.01351/0.3525, allocations: 7.235 MB / 463 MB, free: 6.559 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.780916105955839]