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.001915/0.001915, allocations: 81.22 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001792/0.001792, allocations: 151.2 kB / 23.94 MB, free: 4.176 MB / 14.72 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.398/1.398, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 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.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.292e-06/1.292e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.067e-05/2.196e-05, allocations: 3.531 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003147/0.003169, allocations: 2.644 MB / 321.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.00451, allocations: 0.8577 MB / 322.4 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.004654, allocations: 7.656 kB / 322.4 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.004869, allocations: 66.94 kB / 322.5 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.005097, allocations: 108.5 kB / 322.6 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005143/0.005611, allocations: 226.8 kB / 322.8 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005109/0.006122, allocations: 0.5873 MB / 323.4 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.006299, allocations: 77.45 kB / 323.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004057/0.006705, allocations: 342.2 kB / 323.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003296/0.007035, allocations: 227 kB / 324 MB, free: 440 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.778e-05/0.007112, allocations: 43.09 kB / 324.1 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.007302, allocations: 100.4 kB / 324.2 MB, free: 420 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.007427, allocations: 112 kB / 324.3 MB, free: 348 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.007607, allocations: 162.8 kB / 324.4 MB, free: 268 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006911/0.008299, allocations: 0.5795 MB / 325 MB, free: 32 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.008302, allocations: 0 / 325 MB, free: 32 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.008304, allocations: 5.312 kB / 325 MB, free: 28 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.008311, allocations: 0 / 325 MB, free: 28 kB / 286.1 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.001518/0.009829, allocations: 0.6728 MB / 325.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.009863, allocations: 9.141 kB / 325.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.009973, allocations: 43.59 kB / 325.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.01042, allocations: 248.4 kB / 326 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.01046, allocations: 27.56 kB / 326 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-05/0.01054, allocations: 39.33 kB / 326.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009288/0.01147, allocations: 442.4 kB / 326.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.0115, allocations: 6.062 kB / 326.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.15e-05/0.01155, allocations: 15.56 kB / 326.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.01156, allocations: 11.56 kB / 326.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.01267, allocations: 454.2 kB / 327 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.01505, allocations: 1.046 MB / 328 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008778/0.01593, allocations: 346 kB / 328.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005036/0.01643, allocations: 232.2 kB / 328.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/0.01647, allocations: 5.781 kB / 328.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/0.01652, allocations: 45.28 kB / 328.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.01652, allocations: 0 / 328.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005672/0.02219, allocations: 1.961 MB / 330.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.02225, allocations: 65.42 kB / 330.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.02254, allocations: 244.7 kB / 330.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.1e-05/0.02261, allocations: 39.3 kB / 330.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.02275, allocations: 178.4 kB / 331.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.02291, allocations: 166.5 kB / 331.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/0.02312, allocations: 97.34 kB / 331.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.02329, allocations: 346.8 kB / 331.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005126/0.0238, allocations: 230.9 kB / 331.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005891/0.02439, allocations: 306.5 kB / 332.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008789/0.02527, allocations: 417.4 kB / 332.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.02527, allocations: 1.031 kB / 332.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001705/0.02698, allocations: 0.7525 MB / 333.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.027, allocations: 8.625 kB / 333.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.02701, allocations: 1.375 kB / 333.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.02818, allocations: 0.5475 MB / 333.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.02849, allocations: 70.91 kB / 334 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/0.03172, allocations: 3.394 MB / 337.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005702/0.03229, allocations: 70.47 kB / 337.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.786e-05/0.03235, allocations: 21.58 kB / 337.5 MB, free: 7.777 MB / 302.1 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.0002887/0.03264, allocations: 174.5 kB / 337.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.425e-05/0.03273, allocations: 43.8 kB / 337.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001684/0.03441, allocations: 0.7059 MB / 338.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.03442, allocations: 8.375 kB / 338.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.03442, allocations: 1.156 kB / 338.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.03443, allocations: 8.922 kB / 338.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/0.03672, allocations: 1.105 MB / 339.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.03672, allocations: 0 / 339.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/0.03701, allocations: 57.34 kB / 339.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.03808, allocations: 0.5294 MB / 340.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/0.03814, allocations: 19.97 kB / 340.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003092/0.04123, allocations: 3.371 MB / 343.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.04123, allocations: 0 / 343.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.04338, allocations: 1.019 MB / 344.5 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.04363, allocations: 91.94 kB / 344.6 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.879e-05/0.04371, allocations: 23.94 kB / 344.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.04422, allocations: 63.91 kB / 344.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.04446, allocations: 96.31 kB / 344.8 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-05/0.04451, allocations: 15.98 kB / 344.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001954/0.0447, allocations: 185.1 kB / 345 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0447, allocations: 4 kB / 345 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005878/0.04529, allocations: 123.9 kB / 345.1 MB, free: 0.6406 MB / 302.1 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.0002746/0.04557, allocations: 131.3 kB / 345.2 MB, free: 0.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.04727, allocations: 0.7755 MB / 346 MB, free: 15.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.04727, allocations: 0 / 346 MB, free: 15.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009626/0.04823, allocations: 0.5181 MB / 346.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000538/0.04877, allocations: 64.45 kB / 346.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.05073, allocations: 0.8739 MB / 347.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.05092, allocations: 197.7 kB / 347.7 MB, free: 13.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.05105, allocations: 34.97 kB / 347.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.295e-05/0.05114, allocations: 32.5 kB / 347.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.05114, allocations: 0 / 347.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of Templates: time 0.01582/0.06696, allocations: 8.556 MB / 356.3 MB, free: 5.453 MB / 318.1 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: 4.538399785757065]