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.001421/0.001421, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001014/0.001014, allocations: 141.1 kB / 24.54 MB, free: 36 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 0.9844/0.9844, allocations: 173.3 MB / 201.1 MB, free: 9.336 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.483e-06/1.483e-06, allocations: 0 / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.811e-05/1.96e-05, allocations: 6.25 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002776/0.002796, allocations: 2.837 MB / 270.8 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.003983, allocations: 0.8842 MB / 271.7 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.004115, allocations: 8 kB / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001941/0.004309, allocations: 55.45 kB / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.004508, allocations: 115 kB / 271.9 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004305/0.004938, allocations: 231.4 kB / 272.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.005338, allocations: 0.581 MB / 272.7 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.005498, allocations: 75.05 kB / 272.7 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.005774, allocations: 343.4 kB / 273.1 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.006007, allocations: 231.4 kB / 273.3 MB, free: 1.086 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.579e-05/0.006063, allocations: 44 kB / 273.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.006199, allocations: 95.94 kB / 273.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.006315, allocations: 115.6 kB / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.006432, allocations: 163.6 kB / 273.7 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.006815, allocations: 422.7 kB / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.006817, allocations: 0 / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.00682, allocations: 4 kB / 274.1 MB, free: 264 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.006825, allocations: 4 kB / 274.1 MB, free: 260 kB / 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.0007978/0.007622, allocations: 0.7454 MB / 274.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.007659, allocations: 12.92 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.585e-05/0.007755, allocations: 72.66 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.008022, allocations: 247.4 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.55e-05/0.008087, allocations: 29.38 kB / 275.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.008141, allocations: 36.38 kB / 275.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.00862, allocations: 367.6 kB / 275.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.008635, allocations: 8.141 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.008662, allocations: 12.31 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.008672, allocations: 15.94 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003801/0.009052, allocations: 301.7 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.01035, allocations: 1.034 MB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004476/0.0108, allocations: 275.4 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002005/0.011, allocations: 160.3 kB / 277.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.774e-05/0.01104, allocations: 8.375 kB / 277.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.01106, allocations: 45.7 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.01107, allocations: 0 / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002706/0.01377, allocations: 1.577 MB / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.0138, allocations: 59.91 kB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.01404, allocations: 292.3 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.199e-05/0.01409, allocations: 45.69 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.01423, allocations: 223.6 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.01434, allocations: 174.6 kB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.01447, allocations: 103.9 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.01462, allocations: 0.5117 MB / 280.4 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/0.01486, allocations: 157.2 kB / 280.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.01512, allocations: 229.1 kB / 280.8 MB, free: 9.258 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.01547, allocations: 327.9 kB / 281.1 MB, free: 8.914 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01548, allocations: 0 / 281.1 MB, free: 8.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007806/0.01626, allocations: 0.5899 MB / 281.7 MB, free: 8.305 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.01627, allocations: 10.97 kB / 281.7 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.01628, allocations: 0 / 281.7 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006735/0.01695, allocations: 486.8 kB / 282.2 MB, free: 7.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.01711, allocations: 67.91 kB / 282.3 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002187/0.0193, allocations: 4.502 MB / 286.8 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.01948, allocations: 60.16 kB / 286.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.01951, allocations: 19.94 kB / 286.9 MB, free: 2.887 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.0001339/0.01964, allocations: 196.1 kB / 287.1 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.01971, allocations: 47.8 kB / 287.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000726/0.02043, allocations: 0.5706 MB / 287.7 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.02044, allocations: 4 kB / 287.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.02044, allocations: 0 / 287.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.02045, allocations: 11.91 kB / 287.7 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.02153, allocations: 0.9861 MB / 288.7 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.02153, allocations: 0 / 288.7 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.02167, allocations: 59.91 kB / 288.7 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005749/0.02225, allocations: 478.7 kB / 289.2 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.02228, allocations: 19.97 kB / 289.2 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1158/0.138, allocations: 4.499 MB / 293.7 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.138, allocations: 2.781 kB / 293.7 MB, free: 25.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.1391, allocations: 0.8318 MB / 294.6 MB, free: 25.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.1393, allocations: 87.11 kB / 294.6 MB, free: 25.76 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.1393, allocations: 17.12 kB / 294.7 MB, free: 25.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.1395, allocations: 51.73 kB / 294.7 MB, free: 25.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.1397, allocations: 97.88 kB / 294.8 MB, free: 25.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.1397, allocations: 23.69 kB / 294.8 MB, free: 25.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001066/0.1398, allocations: 200.5 kB / 295 MB, free: 25.63 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1398, allocations: 0 / 295 MB, free: 25.63 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000407/0.1402, allocations: 127.9 kB / 295.1 MB, free: 25.63 MB / 266.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.0002028/0.1404, allocations: 138.4 kB / 295.3 MB, free: 25.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009296/0.1414, allocations: 0.7738 MB / 296.1 MB, free: 25.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1414, allocations: 1.188 kB / 296.1 MB, free: 25.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.1418, allocations: 0.584 MB / 296.6 MB, free: 24.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.1422, allocations: 86.45 kB / 296.7 MB, free: 24.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.1439, allocations: 0.849 MB / 297.6 MB, free: 24.44 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.13e-05/0.1439, allocations: 110.5 kB / 297.7 MB, free: 24.37 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.144, allocations: 31.7 kB / 297.7 MB, free: 24.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.938e-05/0.1441, allocations: 32.84 kB / 297.7 MB, free: 24.36 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1441, allocations: 0 / 297.7 MB, free: 24.36 MB / 266.7 MB Notification: Performance of Templates: time 0.01115/0.1553, allocations: 8.662 MB / 306.4 MB, free: 21.69 MB / 266.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: 3.1545272609218955]