Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.0008687/0.0008687, allocations: 84 kB / 21.43 MB, free: 3.133 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.004754/0.004754, allocations: 142.1 kB / 24.68 MB, free: 8.914 MB / 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 0.865/0.865, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.51e-05/2.691e-05, allocations: 6.219 kB / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00285/0.002877, allocations: 2.638 MB / 322.3 MB, free: 3.199 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.004215, allocations: 0.8608 MB / 323.2 MB, free: 2.332 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.004379, allocations: 7.938 kB / 323.2 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.004593, allocations: 51.45 kB / 323.2 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002215/0.004814, allocations: 122.9 kB / 323.4 MB, free: 2.152 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004621/0.005276, allocations: 223.6 kB / 323.6 MB, free: 1.934 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.005701, allocations: 0.5887 MB / 324.2 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.005873, allocations: 79.02 kB / 324.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.006168, allocations: 339.4 kB / 324.6 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.006393, allocations: 223.5 kB / 324.8 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.006444, allocations: 44 kB / 324.8 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.006578, allocations: 99.88 kB / 324.9 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.006678, allocations: 115.6 kB / 325 MB, free: 464 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.006789, allocations: 163.6 kB / 325.2 MB, free: 300 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005115/0.0073, allocations: 0.5764 MB / 325.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.007304, allocations: 4 kB / 325.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.007305, allocations: 0 / 325.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.007312, allocations: 0 / 325.8 MB, free: 15.71 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001205/0.008517, allocations: 0.6689 MB / 326.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.008557, allocations: 12.92 kB / 326.5 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.845e-05/0.008636, allocations: 40.7 kB / 326.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.008982, allocations: 252.5 kB / 326.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.009016, allocations: 29.31 kB / 326.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.45e-05/0.00907, allocations: 40.36 kB / 326.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/0.009622, allocations: 434.9 kB / 327.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.009641, allocations: 12.14 kB / 327.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.00967, allocations: 12.38 kB / 327.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.00968, allocations: 11.94 kB / 327.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005612/0.01024, allocations: 455.7 kB / 327.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.01166, allocations: 1.047 MB / 328.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005513/0.01221, allocations: 343.2 kB / 329.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/0.01249, allocations: 233.2 kB / 329.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.01253, allocations: 4.375 kB / 329.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.01255, allocations: 46.88 kB / 329.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.01256, allocations: 0 / 329.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003136/0.01569, allocations: 1.958 MB / 331.3 MB, free: 9.961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.01573, allocations: 55.91 kB / 331.4 MB, free: 9.895 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.0159, allocations: 249.8 kB / 331.6 MB, free: 9.641 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.01594, allocations: 41.7 kB / 331.7 MB, free: 9.594 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.909e-05/0.01603, allocations: 176.8 kB / 331.9 MB, free: 9.414 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/0.01612, allocations: 170.6 kB / 332 MB, free: 9.246 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.01624, allocations: 98.31 kB / 332.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.01634, allocations: 342.8 kB / 332.4 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.01664, allocations: 233.2 kB / 332.7 MB, free: 8.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003221/0.01696, allocations: 312 kB / 333 MB, free: 8.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.01744, allocations: 419 kB / 333.4 MB, free: 7.824 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.01744, allocations: 0 / 333.4 MB, free: 7.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001423/0.01886, allocations: 0.7534 MB / 334.1 MB, free: 7.055 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.01888, allocations: 8 kB / 334.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.01889, allocations: 0 / 334.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007194/0.01961, allocations: 0.5451 MB / 334.7 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.01977, allocations: 71.89 kB / 334.8 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.02194, allocations: 3.403 MB / 338.2 MB, free: 2.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.02219, allocations: 75.92 kB / 338.2 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.02222, allocations: 20 kB / 338.3 MB, free: 2.699 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001722/0.02239, allocations: 181.5 kB / 338.4 MB, free: 2.512 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.633e-05/0.02245, allocations: 35.77 kB / 338.5 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.02346, allocations: 0.703 MB / 339.2 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.02346, allocations: 4 kB / 339.2 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.02347, allocations: 4 kB / 339.2 MB, free: 1.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.02347, allocations: 7.922 kB / 339.2 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.02484, allocations: 1.1 MB / 340.3 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.02484, allocations: 0 / 340.3 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.02499, allocations: 55.91 kB / 340.3 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009452/0.02593, allocations: 0.5333 MB / 340.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.02596, allocations: 15.94 kB / 340.9 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.02768, allocations: 3.366 MB / 344.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.02768, allocations: 7.969 kB / 344.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.02884, allocations: 1.019 MB / 345.3 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.02898, allocations: 83.89 kB / 345.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.02902, allocations: 23.94 kB / 345.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.02924, allocations: 71.91 kB / 345.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.02939, allocations: 96.25 kB / 345.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.02941, allocations: 19.97 kB / 345.6 MB, free: 11.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001078/0.02952, allocations: 173.2 kB / 345.7 MB, free: 10.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02952, allocations: 0 / 345.7 MB, free: 10.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003659/0.02988, allocations: 131.9 kB / 345.9 MB, free: 10.74 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002268/0.03011, allocations: 134.3 kB / 346 MB, free: 10.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009624/0.03107, allocations: 0.7716 MB / 346.8 MB, free: 9.805 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.03108, allocations: 0 / 346.8 MB, free: 9.805 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004716/0.03155, allocations: 0.5141 MB / 347.3 MB, free: 9.266 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.03189, allocations: 64.45 kB / 347.4 MB, free: 9.203 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.03348, allocations: 0.9134 MB / 348.3 MB, free: 8.262 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.03361, allocations: 197.8 kB / 348.5 MB, free: 8.051 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.421e-05/0.03367, allocations: 32.5 kB / 348.5 MB, free: 8.02 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.03367, allocations: 0 / 348.5 MB, free: 8.02 MB / 314.7 MB Notification: Performance of Templates: time 0.007691/0.04137, allocations: 9.092 MB / 357.6 MB, free: 14.93 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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: 5.661162286065519]