Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001865/0.001865, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.00149/0.00149, allocations: 163.6 kB / 25.02 MB, free: 8.945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 158.6 MB / 186.8 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 250.4 MB, free: 7.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.895e-05/3.084e-05, allocations: 2.312 kB / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004645/0.004676, allocations: 2.639 MB / 253 MB, free: 5.184 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.006731, allocations: 0.9083 MB / 253.9 MB, free: 4.266 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.0069, allocations: 7.938 kB / 253.9 MB, free: 4.258 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002442/0.007145, allocations: 63.38 kB / 254 MB, free: 4.195 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002986/0.007443, allocations: 115 kB / 254.1 MB, free: 4.078 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005674/0.008011, allocations: 219.5 kB / 254.3 MB, free: 3.863 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006989/0.008709, allocations: 0.5849 MB / 254.9 MB, free: 3.277 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.008909, allocations: 75.05 kB / 255 MB, free: 3.203 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004867/0.009396, allocations: 351.3 kB / 255.3 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003606/0.009757, allocations: 223.4 kB / 255.5 MB, free: 2.641 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-05/0.00984, allocations: 44 kB / 255.6 MB, free: 2.598 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.01004, allocations: 91.95 kB / 255.7 MB, free: 2.508 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.01021, allocations: 115.6 kB / 255.8 MB, free: 2.395 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.01041, allocations: 163.6 kB / 255.9 MB, free: 2.234 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.01143, allocations: 0.5764 MB / 256.5 MB, free: 1.656 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.01143, allocations: 0 / 256.5 MB, free: 1.656 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.01143, allocations: 0 / 256.5 MB, free: 1.656 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.01144, allocations: 0 / 256.5 MB, free: 1.656 MB / 234.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.001569/0.01301, allocations: 0.6728 MB / 257.2 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/0.01307, allocations: 15.98 kB / 257.2 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.01325, allocations: 72.66 kB / 257.3 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005146/0.01377, allocations: 248.6 kB / 257.5 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.01381, allocations: 25.38 kB / 257.5 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.01391, allocations: 48.25 kB / 257.6 MB, free: 0.5234 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009909/0.0149, allocations: 438.9 kB / 258 MB, free: 92 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.01492, allocations: 192 / 258 MB, free: 92 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.288e-05/0.01498, allocations: 16.38 kB / 258 MB, free: 76 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.451e-05/0.015, allocations: 11.94 kB / 258 MB, free: 64 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.01612, allocations: 459.7 kB / 258.5 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002604/0.01873, allocations: 1.059 MB / 259.5 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009266/0.01965, allocations: 340.2 kB / 259.9 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005426/0.02019, allocations: 233.5 kB / 260.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.509e-05/0.02024, allocations: 8.375 kB / 260.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.02027, allocations: 38.88 kB / 260.1 MB, free: 13.88 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.723e-06/0.02028, allocations: 0 / 260.1 MB, free: 13.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.005908/0.02618, allocations: 1.972 MB / 262.1 MB, free: 11.85 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.02624, allocations: 55.91 kB / 262.2 MB, free: 11.78 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.02657, allocations: 253.8 kB / 262.4 MB, free: 11.52 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.216e-05/0.02663, allocations: 37.7 kB / 262.5 MB, free: 11.48 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.0268, allocations: 176.9 kB / 262.6 MB, free: 11.3 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.02699, allocations: 170.6 kB / 262.8 MB, free: 11.14 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.02721, allocations: 98.28 kB / 262.9 MB, free: 11.04 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.02743, allocations: 350.7 kB / 263.2 MB, free: 10.68 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000844/0.02827, allocations: 233.2 kB / 263.5 MB, free: 10.46 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/0.02892, allocations: 300.1 kB / 263.8 MB, free: 10.14 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009828/0.02991, allocations: 427 kB / 264.2 MB, free: 9.711 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.02991, allocations: 0 / 264.2 MB, free: 9.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001942/0.03185, allocations: 0.7652 MB / 264.9 MB, free: 8.93 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.03187, allocations: 4 kB / 264.9 MB, free: 8.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.03188, allocations: 4 kB / 264.9 MB, free: 8.922 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.03323, allocations: 0.5451 MB / 265.5 MB, free: 8.367 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003286/0.03356, allocations: 75.83 kB / 265.6 MB, free: 8.293 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003931/0.03749, allocations: 3.416 MB / 269 MB, free: 4.648 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005766/0.03806, allocations: 80.3 kB / 269.1 MB, free: 4.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.03812, allocations: 20 kB / 269.1 MB, free: 4.551 MB / 250.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.0003104/0.03843, allocations: 177.2 kB / 269.3 MB, free: 4.367 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.03857, allocations: 51.81 kB / 269.3 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.04043, allocations: 0.7068 MB / 270 MB, free: 3.59 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.04044, allocations: 4 kB / 270 MB, free: 3.586 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.04044, allocations: 0 / 270 MB, free: 3.586 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.04045, allocations: 7.922 kB / 270 MB, free: 3.578 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/0.04324, allocations: 1.107 MB / 271.1 MB, free: 2.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.04324, allocations: 0 / 271.1 MB, free: 2.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000303/0.04355, allocations: 55.91 kB / 271.2 MB, free: 2.375 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.04475, allocations: 0.5294 MB / 271.7 MB, free: 1.836 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.452e-05/0.0448, allocations: 15.98 kB / 271.7 MB, free: 1.82 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003804/0.04861, allocations: 3.385 MB / 275.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.04861, allocations: 0 / 275.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/0.05096, allocations: 1.035 MB / 276.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.0512, allocations: 83.94 kB / 276.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.008e-05/0.05128, allocations: 19.94 kB / 276.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004868/0.05176, allocations: 71.91 kB / 276.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000256/0.05202, allocations: 92.31 kB / 276.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.896e-05/0.05207, allocations: 19.97 kB / 276.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002167/0.05228, allocations: 173.2 kB / 276.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05228, allocations: 0 / 276.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005999/0.05288, allocations: 131.9 kB / 276.7 MB, free: 12.57 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.0003129/0.0532, allocations: 131.2 kB / 276.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.05501, allocations: 0.7784 MB / 277.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.05502, allocations: 0 / 277.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.05634, allocations: 0.518 MB / 278.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006269/0.05697, allocations: 92.39 kB / 278.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.05917, allocations: 0.8945 MB / 279.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.0594, allocations: 197.7 kB / 279.3 MB, free: 9.852 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001509/0.05955, allocations: 26.98 kB / 279.4 MB, free: 9.824 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.05966, allocations: 36.48 kB / 279.4 MB, free: 9.789 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.05966, allocations: 0 / 279.4 MB, free: 9.789 MB / 266.7 MB Notification: Performance of Templates: time 0.01727/0.07694, allocations: 8.578 MB / 288 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.709114478901029]