Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002624/0.002624, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002242/0.002242, allocations: 165.6 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.536/1.536, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.098e-05/3.233e-05, allocations: 2.312 kB / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00475/0.004783, allocations: 2.532 MB / 274.8 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.00703, allocations: 1.096 MB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.007164, allocations: 7.938 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000305/0.007469, allocations: 67.42 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005029/0.007972, allocations: 179.8 kB / 276.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004337/0.008406, allocations: 183.6 kB / 276.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006451/0.009051, allocations: 0.5334 MB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.009235, allocations: 61.11 kB / 276.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005116/0.009747, allocations: 319.3 kB / 277.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003683/0.01012, allocations: 227.5 kB / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.01022, allocations: 44 kB / 277.5 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002701/0.01049, allocations: 135.8 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.01067, allocations: 123.6 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.01086, allocations: 147.6 kB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008412/0.0117, allocations: 0.588 MB / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01171, allocations: 0 / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01171, allocations: 4 kB / 278.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.01172, allocations: 0 / 278.5 MB, free: 11.62 MB / 266.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.001494/0.01321, allocations: 0.741 MB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.01325, allocations: 16.03 kB / 279.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004756/0.01372, allocations: 88.67 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000556/0.01428, allocations: 264 kB / 279.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.01447, allocations: 144 kB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.916e-05/0.01455, allocations: 36.33 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008923/0.01544, allocations: 436.8 kB / 280.2 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.01546, allocations: 192 / 280.2 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.823e-05/0.01551, allocations: 16.12 kB / 280.2 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.01552, allocations: 11.98 kB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.01654, allocations: 418.3 kB / 280.7 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.0187, allocations: 0.8677 MB / 281.5 MB, free: 8.473 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008918/0.01959, allocations: 357.8 kB / 281.9 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004917/0.02008, allocations: 197.1 kB / 282.1 MB, free: 7.918 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.546e-05/0.02013, allocations: 8.5 kB / 282.1 MB, free: 7.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.02017, allocations: 41.89 kB / 282.1 MB, free: 7.859 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.553e-06/0.02017, allocations: 0 / 282.1 MB, free: 7.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.005437/0.02561, allocations: 1.844 MB / 284 MB, free: 5.953 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.02568, allocations: 85.59 kB / 284 MB, free: 5.852 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004102/0.02609, allocations: 306.7 kB / 284.3 MB, free: 5.531 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.02615, allocations: 45.69 kB / 284.4 MB, free: 5.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.0263, allocations: 191.9 kB / 284.6 MB, free: 5.289 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/0.0265, allocations: 194.3 kB / 284.8 MB, free: 5.098 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.0267, allocations: 111.8 kB / 284.9 MB, free: 4.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003148/0.02701, allocations: 0.5274 MB / 285.4 MB, free: 4.441 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004419/0.02746, allocations: 168.9 kB / 285.6 MB, free: 4.277 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005442/0.028, allocations: 258.2 kB / 285.8 MB, free: 4.004 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008465/0.02885, allocations: 357.3 kB / 286.2 MB, free: 3.648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.02885, allocations: 0 / 286.2 MB, free: 3.648 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001383/0.03023, allocations: 0.5837 MB / 286.7 MB, free: 3.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.03025, allocations: 8 kB / 286.8 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.03026, allocations: 0 / 286.8 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008702/0.03113, allocations: 273.4 kB / 287 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003122/0.03144, allocations: 63.89 kB / 287.1 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1099/0.1413, allocations: 3.416 MB / 290.5 MB, free: 26.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.1417, allocations: 19.47 kB / 290.5 MB, free: 26.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/0.1417, allocations: 21.36 kB / 290.5 MB, free: 26.32 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.0001972/0.1419, allocations: 197.3 kB / 290.7 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.142, allocations: 51.73 kB / 290.8 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.1421, allocations: 48.7 kB / 290.8 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1421, allocations: 4.75 kB / 290.8 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1422, allocations: 4.906 kB / 290.8 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.1422, allocations: 4.359 kB / 290.8 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.1443, allocations: 1.189 MB / 292 MB, free: 25.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.1443, allocations: 0.5938 kB / 292 MB, free: 25.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.1446, allocations: 64.08 kB / 292.1 MB, free: 25.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007067/0.1453, allocations: 264.1 kB / 292.4 MB, free: 25.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.075e-05/0.1453, allocations: 16.33 kB / 292.4 MB, free: 25.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003321/0.1487, allocations: 3.314 MB / 295.7 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1487, allocations: 5.75 kB / 295.7 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.1504, allocations: 0.9556 MB / 296.6 MB, free: 22.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.1506, allocations: 77.12 kB / 296.7 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.479e-05/0.1506, allocations: 13.03 kB / 296.7 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002855/0.1509, allocations: 21.27 kB / 296.8 MB, free: 22.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.1511, allocations: 72.34 kB / 296.8 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-05/0.1511, allocations: 24.19 kB / 296.9 MB, free: 22.83 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002153/0.1514, allocations: 220 kB / 297.1 MB, free: 22.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1514, allocations: 3.656 kB / 297.1 MB, free: 22.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006498/0.152, allocations: 154.1 kB / 297.2 MB, free: 22.66 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.002383/0.1544, allocations: 406 kB / 297.6 MB, free: 22.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.1557, allocations: 0.7181 MB / 298.3 MB, free: 22.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1557, allocations: 1 kB / 298.3 MB, free: 22.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007755/0.1565, allocations: 0.5334 MB / 298.9 MB, free: 21.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.157, allocations: 78.09 kB / 298.9 MB, free: 21.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.1584, allocations: 0.7553 MB / 299.7 MB, free: 21.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.1586, allocations: 194.7 kB / 299.9 MB, free: 21.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002316/0.1589, allocations: 70.25 kB / 300 MB, free: 21.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.159, allocations: 41.98 kB / 300 MB, free: 21.31 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.159, allocations: 4 kB / 300 MB, free: 21.3 MB / 266.7 MB Notification: Performance of Templates: time 0.01222/0.1712, allocations: 7.657 MB / 307.7 MB, free: 17.71 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_4.1.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.697821935988031]