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.0009691/0.0009691, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0008923/0.0008923, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9388/0.9388, allocations: 173.4 MB / 202.3 MB, free: 8.27 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.233e-06/1.233e-06, allocations: 0 / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.357e-05/1.48e-05, allocations: 5.266 kB / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002682/0.002697, allocations: 2.789 MB / 272 MB, free: 7.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.003976, allocations: 0.8758 MB / 272.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.004123, allocations: 9.594 kB / 272.9 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002143/0.004337, allocations: 59.44 kB / 272.9 MB, free: 6.062 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002364/0.004573, allocations: 108.7 kB / 273 MB, free: 5.957 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000428/0.005001, allocations: 224.4 kB / 273.2 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.005484, allocations: 0.5908 MB / 273.8 MB, free: 5.148 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.005637, allocations: 75.05 kB / 273.9 MB, free: 5.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003243/0.005961, allocations: 347.3 kB / 274.2 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002476/0.006209, allocations: 227.4 kB / 274.5 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.25e-05/0.006271, allocations: 44 kB / 274.5 MB, free: 4.465 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.006407, allocations: 91.95 kB / 274.6 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.389e-05/0.006501, allocations: 116.8 kB / 274.7 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.006618, allocations: 159.7 kB / 274.9 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.007011, allocations: 430.5 kB / 275.3 MB, free: 3.684 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.007013, allocations: 4.531 kB / 275.3 MB, free: 3.68 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.007013, allocations: 0.5 kB / 275.3 MB, free: 3.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.007019, allocations: 0 / 275.3 MB, free: 3.68 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0007618/0.007781, allocations: 0.7415 MB / 276 MB, free: 2.902 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.00781, allocations: 12.03 kB / 276.1 MB, free: 2.891 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.954e-05/0.0079, allocations: 68.7 kB / 276.1 MB, free: 2.824 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.008149, allocations: 263.4 kB / 276.4 MB, free: 2.543 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.008176, allocations: 25.38 kB / 276.4 MB, free: 2.52 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.161e-05/0.008228, allocations: 32.38 kB / 276.4 MB, free: 2.488 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.008601, allocations: 323.5 kB / 276.7 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.008619, allocations: 12.12 kB / 276.8 MB, free: 2.152 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.008646, allocations: 12.38 kB / 276.8 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.008654, allocations: 11.94 kB / 276.8 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.008918, allocations: 218.8 kB / 277 MB, free: 1.914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.01007, allocations: 0.992 MB / 278 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.01041, allocations: 230.8 kB / 278.2 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.01055, allocations: 132 kB / 278.3 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.01058, allocations: 8.375 kB / 278.4 MB, free: 0.5 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.0106, allocations: 41.77 kB / 278.4 MB, free: 460 kB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.633e-06/0.01061, allocations: 0 / 278.4 MB, free: 460 kB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.002016/0.01262, allocations: 1.343 MB / 279.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.574e-05/0.01265, allocations: 59.91 kB / 279.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.01279, allocations: 288.2 kB / 280.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.01282, allocations: 37.7 kB / 280.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.509e-05/0.01291, allocations: 219.6 kB / 280.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.088e-05/0.013, allocations: 174.6 kB / 280.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.01311, allocations: 107.9 kB / 280.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.01323, allocations: 0.5195 MB / 281.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.01337, allocations: 113.2 kB / 281.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.01354, allocations: 189 kB / 281.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002529/0.0138, allocations: 260 kB / 281.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.0138, allocations: 3.938 kB / 281.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006472/0.01445, allocations: 0.504 MB / 282.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.01446, allocations: 4 kB / 282.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01446, allocations: 4 kB / 282.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00057/0.01503, allocations: 466.8 kB / 282.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.01518, allocations: 71.84 kB / 282.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/0.01701, allocations: 4.411 MB / 287.1 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.0172, allocations: 56.16 kB / 287.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.01723, allocations: 19.98 kB / 287.2 MB, free: 7.172 MB / 266.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.0001252/0.01735, allocations: 184.5 kB / 287.4 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.142e-05/0.01743, allocations: 55.7 kB / 287.4 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005852/0.01801, allocations: 0.4886 MB / 287.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.01802, allocations: 8 kB / 287.9 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.01802, allocations: 0 / 287.9 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.01802, allocations: 3.984 kB / 287.9 MB, free: 6.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009652/0.01899, allocations: 0.8656 MB / 288.8 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.01899, allocations: 0 / 288.8 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.01913, allocations: 55.97 kB / 288.9 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005099/0.01964, allocations: 474.4 kB / 289.3 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.01967, allocations: 15.98 kB / 289.3 MB, free: 4.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.02153, allocations: 4.423 MB / 293.8 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.02153, allocations: 0 / 293.8 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007464/0.02228, allocations: 0.7235 MB / 294.5 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.02239, allocations: 79.73 kB / 294.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.02243, allocations: 12 kB / 294.6 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.0226, allocations: 51.94 kB / 294.6 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.02273, allocations: 92.31 kB / 294.7 MB, free: 15.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.02276, allocations: 19.97 kB / 294.7 MB, free: 15.26 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.659e-05/0.02283, allocations: 193.1 kB / 294.9 MB, free: 15.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02283, allocations: 0 / 294.9 MB, free: 15.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003123/0.02314, allocations: 131.9 kB / 295 MB, free: 14.94 MB / 282.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.0004089/0.02355, allocations: 135.2 kB / 295.2 MB, free: 14.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006383/0.02419, allocations: 0.6965 MB / 295.9 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.02419, allocations: 0 / 295.9 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003737/0.02457, allocations: 0.5562 MB / 296.4 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.02488, allocations: 96.48 kB / 296.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.02605, allocations: 0.844 MB / 297.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.326e-05/0.02611, allocations: 109.3 kB / 297.5 MB, free: 12.37 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.969e-05/0.02619, allocations: 30.97 kB / 297.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.02633, allocations: 130.2 kB / 297.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of SimCode: time 7.92e-07/0.02633, allocations: 0 / 297.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of Templates: time 0.01026/0.03659, allocations: 9.637 MB / 307.3 MB, free: 2.68 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9672122509218752]