Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00202/0.00202, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 43.92 kB / 371.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2811, allocations: 52.18 MB / 423.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.005617/0.2868, allocations: 2.461 MB / 426.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.2894, allocations: 0.9715 MB / 427.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.2896, allocations: 7.938 kB / 427.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003044/0.2899, allocations: 47.56 kB / 427.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007279/0.2906, allocations: 163 kB / 427.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.2911, allocations: 183.6 kB / 427.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007131/0.2918, allocations: 482.4 kB / 428.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.292, allocations: 61.14 kB / 428.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004054/0.2925, allocations: 207.4 kB / 428.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004752/0.2929, allocations: 259.1 kB / 428.7 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.503e-05/0.293, allocations: 36 kB / 428.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003139/0.2933, allocations: 135.9 kB / 428.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.2935, allocations: 103.7 kB / 428.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002724/0.2938, allocations: 191.1 kB / 429.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009155/0.2947, allocations: 0.4916 MB / 429.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2947, allocations: 0 / 429.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2947, allocations: 0 / 429.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.2947, allocations: 7.938 kB / 429.6 MB, free: 8.914 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.001744/0.2965, allocations: 0.6026 MB / 430.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.2965, allocations: 11.97 kB / 430.2 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004962/0.297, allocations: 60.67 kB / 430.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006732/0.2977, allocations: 250.9 kB / 430.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000245/0.2979, allocations: 148 kB / 430.7 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.298, allocations: 32.38 kB / 430.7 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.2993, allocations: 413.1 kB / 431.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/0.2993, allocations: 3.953 kB / 431.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.2994, allocations: 12 kB / 431.1 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.2994, allocations: 15.98 kB / 431.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.3012, allocations: 482.2 kB / 431.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003125/0.3043, allocations: 0.9048 MB / 432.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.3058, allocations: 377.2 kB / 432.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009148/0.3068, allocations: 206.1 kB / 433.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.289e-05/0.3068, allocations: 12.42 kB / 433.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.228e-05/0.3069, allocations: 39.19 kB / 433.2 MB, free: 5.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.466e-06/0.3069, allocations: 0 / 433.2 MB, free: 5.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.01011/0.317, allocations: 1.937 MB / 435.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.3171, allocations: 85.61 kB / 435.2 MB, free: 3.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006099/0.3177, allocations: 263 kB / 435.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.8e-05/0.3178, allocations: 37.7 kB / 435.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.3179, allocations: 137.3 kB / 435.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00029/0.3182, allocations: 186.4 kB / 435.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002669/0.3185, allocations: 90.17 kB / 435.9 MB, free: 2.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002436/0.3187, allocations: 346.8 kB / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008851/0.3196, allocations: 192.9 kB / 436.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009699/0.3206, allocations: 244 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001744/0.3223, allocations: 395.3 kB / 437 MB, free: 1.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3223, allocations: 4 kB / 437 MB, free: 1.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002485/0.3248, allocations: 0.6004 MB / 437.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.3249, allocations: 11.94 kB / 437.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.3249, allocations: 0 / 437.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.3263, allocations: 263.7 kB / 437.9 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006108/0.3269, allocations: 63.95 kB / 438 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007928/0.3348, allocations: 2.828 MB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.3354, allocations: 32 kB / 440.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.229e-05/0.3355, allocations: 19.98 kB / 440.8 MB, free: 13.3 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.0003977/0.3359, allocations: 157.8 kB / 441 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.336, allocations: 39.75 kB / 441 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001742/0.3362, allocations: 47.3 kB / 441.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.3362, allocations: 4 kB / 441.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3362, allocations: 0 / 441.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.3362, allocations: 11.91 kB / 441.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004443/0.3407, allocations: 1.226 MB / 442.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3407, allocations: 3.938 kB / 442.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000654/0.3413, allocations: 71.89 kB / 442.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001314/0.3427, allocations: 232.7 kB / 442.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.711e-05/0.3427, allocations: 15.98 kB / 442.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007204/0.3499, allocations: 2.74 MB / 445.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3499, allocations: 0 / 445.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003503/0.3534, allocations: 0.9568 MB / 446.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003009/0.3537, allocations: 71.77 kB / 446.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.3539, allocations: 19.94 kB / 446.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.3544, allocations: 28.03 kB / 446.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/0.3547, allocations: 72.3 kB / 446.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.987e-05/0.3548, allocations: 15.98 kB / 446.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00044/0.3552, allocations: 200.6 kB / 446.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3552, allocations: 0 / 446.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0011/0.3563, allocations: 151.9 kB / 446.9 MB, free: 7.066 MB / 350.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.0004179/0.3568, allocations: 143.1 kB / 447 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002665/0.3594, allocations: 0.6635 MB / 447.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3594, allocations: 0 / 447.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001536/0.361, allocations: 464.1 kB / 448.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007404/0.3617, allocations: 39.7 kB / 448.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.3646, allocations: 0.8337 MB / 449 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007184/0.3653, allocations: 0.7968 MB / 449.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.3655, allocations: 39.41 kB / 449.9 MB, free: 4 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3655, allocations: 4 kB / 449.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of Templates: time 0.01779/0.3833, allocations: 6.046 MB / 455.9 MB, free: 13.96 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 8.445865211077034]