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.002239/0.002239, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 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.002407/0.002407, allocations: 153.1 kB / 24.26 MB, free: 156 kB / 18.57 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.517/1.517, allocations: 173.3 MB / 200.8 MB, free: 9.301 MB / 186.7 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 1.372e-06/1.372e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.482e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003872/0.003896, allocations: 2.297 MB / 269.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.005998, allocations: 0.9362 MB / 270.5 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.006111, allocations: 4 kB / 270.5 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002228/0.006333, allocations: 51.5 kB / 270.6 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005341/0.006867, allocations: 166.9 kB / 270.8 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.007316, allocations: 183.6 kB / 270.9 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005782/0.007895, allocations: 482.3 kB / 271.4 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.008076, allocations: 65.12 kB / 271.5 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004861/0.008562, allocations: 291.3 kB / 271.8 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003681/0.00893, allocations: 211.5 kB / 272 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.37e-05/0.009014, allocations: 36 kB / 272 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002816/0.009295, allocations: 119.9 kB / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.00946, allocations: 115.6 kB / 272.2 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.009646, allocations: 131.7 kB / 272.4 MB, free: 1.637 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007241/0.01037, allocations: 0.5335 MB / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.01037, allocations: 0 / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01037, allocations: 4 kB / 272.9 MB, free: 1.098 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.01038, allocations: 0 / 272.9 MB, free: 1.098 MB / 250.7 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.001404/0.01178, allocations: 0.5987 MB / 273.5 MB, free: 480 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.01182, allocations: 12.92 kB / 273.5 MB, free: 468 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004236/0.01225, allocations: 80.69 kB / 273.6 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.01278, allocations: 265.1 kB / 273.8 MB, free: 96 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/0.01298, allocations: 140 kB / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.78e-05/0.01308, allocations: 40.27 kB / 274 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009088/0.01399, allocations: 435.2 kB / 274.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.01401, allocations: 4.188 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.203e-05/0.01407, allocations: 16.12 kB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.01408, allocations: 15.98 kB / 274.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.0152, allocations: 462.2 kB / 274.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.01703, allocations: 0.7846 MB / 275.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009155/0.01794, allocations: 381.3 kB / 276.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/0.01847, allocations: 210.2 kB / 276.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.01851, allocations: 8.5 kB / 276.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.881e-05/0.01857, allocations: 39.06 kB / 276.3 MB, free: 13.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.744e-06/0.01857, allocations: 0 / 276.3 MB, free: 13.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.006332/0.0249, allocations: 1.953 MB / 278.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.02498, allocations: 85.55 kB / 278.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003498/0.02533, allocations: 239.1 kB / 278.6 MB, free: 11.15 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.629e-05/0.02538, allocations: 37.7 kB / 278.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.02551, allocations: 145.1 kB / 278.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.0257, allocations: 186.4 kB / 279 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.02592, allocations: 94.12 kB / 279.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.02613, allocations: 338.8 kB / 279.4 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005092/0.02664, allocations: 196.9 kB / 279.6 MB, free: 10.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.02725, allocations: 265.7 kB / 279.8 MB, free: 9.871 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009767/0.02822, allocations: 395.6 kB / 280.2 MB, free: 9.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.02823, allocations: 4.031 kB / 280.2 MB, free: 9.477 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001492/0.02972, allocations: 0.6082 MB / 280.8 MB, free: 8.855 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.02974, allocations: 4 kB / 280.9 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.02974, allocations: 4 kB / 280.9 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000846/0.03059, allocations: 258.6 kB / 281.1 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/0.03101, allocations: 63.89 kB / 281.2 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004713/0.03572, allocations: 2.798 MB / 284 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003456/0.03607, allocations: 23.98 kB / 284 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.318e-05/0.03612, allocations: 19.98 kB / 284 MB, free: 5.582 MB / 266.7 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.0002352/0.03636, allocations: 153.8 kB / 284.2 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003625/0.03672, allocations: 55.86 kB / 284.2 MB, free: 5.367 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/0.03685, allocations: 47.31 kB / 284.3 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.03685, allocations: 8 kB / 284.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.03686, allocations: 3.938 kB / 284.3 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.03687, allocations: 7.969 kB / 284.3 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.0394, allocations: 1.119 MB / 285.4 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.03941, allocations: 4.031 kB / 285.4 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.03977, allocations: 59.95 kB / 285.5 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007302/0.0405, allocations: 236.6 kB / 285.7 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.04054, allocations: 15.98 kB / 285.7 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004431/0.04497, allocations: 2.693 MB / 288.4 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.04497, allocations: 4.062 kB / 288.4 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002092/0.04707, allocations: 0.9608 MB / 289.4 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1351/0.1821, allocations: 74.36 kB / 289.4 MB, free: 32.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.1822, allocations: 13.14 kB / 289.5 MB, free: 32.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003645/0.1826, allocations: 28.98 kB / 289.5 MB, free: 32.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.1828, allocations: 71.84 kB / 289.5 MB, free: 32.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.1829, allocations: 18.53 kB / 289.6 MB, free: 32.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002047/0.1831, allocations: 176.7 kB / 289.7 MB, free: 32.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1831, allocations: 0 / 289.7 MB, free: 32.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006817/0.1837, allocations: 155 kB / 289.9 MB, free: 32.48 MB / 266.7 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.0002252/0.184, allocations: 142.7 kB / 290 MB, free: 32.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.1854, allocations: 0.6801 MB / 290.7 MB, free: 32.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1854, allocations: 0 / 290.7 MB, free: 32.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00078/0.1862, allocations: 466.6 kB / 291.2 MB, free: 32.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.1866, allocations: 58.31 kB / 291.2 MB, free: 32.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.188, allocations: 0.743 MB / 292 MB, free: 31.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.1881, allocations: 189.3 kB / 292.2 MB, free: 31.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.1883, allocations: 59.8 kB / 292.2 MB, free: 31.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1884, allocations: 38.44 kB / 292.2 MB, free: 31.75 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.1884, allocations: 0 / 292.2 MB, free: 31.75 MB / 266.7 MB Notification: Performance of Templates: time 0.01245/0.2009, allocations: 7.104 MB / 299.4 MB, free: 29.97 MB / 266.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/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: 4.768378705019131]