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.001362/0.001362, allocations: 85.39 kB / 21.44 MB, free: 296 kB / 14.72 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.001661/0.001661, allocations: 163.6 kB / 24.7 MB, free: 3.551 MB / 14.72 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.345/1.345, allocations: 158.6 MB / 186.5 MB, free: 6.41 MB / 174.1 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.874e-06/1.874e-06, allocations: 0 / 298.9 MB, free: 8.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.639e-05/3.826e-05, allocations: 6.281 kB / 298.9 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004297/0.004335, allocations: 2.639 MB / 301.6 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.006148, allocations: 0.8966 MB / 302.5 MB, free: 5.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001868/0.006334, allocations: 7.938 kB / 302.5 MB, free: 5.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002519/0.006586, allocations: 63.38 kB / 302.5 MB, free: 5.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.006897, allocations: 119 kB / 302.7 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005931/0.00749, allocations: 219.6 kB / 302.9 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006335/0.008124, allocations: 0.5888 MB / 303.5 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.008312, allocations: 75.03 kB / 303.5 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004329/0.008745, allocations: 347.3 kB / 303.9 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003524/0.009097, allocations: 231.4 kB / 304.1 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.77e-05/0.009185, allocations: 48 kB / 304.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.009376, allocations: 87.95 kB / 304.2 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.009525, allocations: 115.6 kB / 304.3 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002025/0.009727, allocations: 159.6 kB / 304.5 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007245/0.01045, allocations: 0.5842 MB / 305.1 MB, free: 2.648 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.01046, allocations: 0 / 305.1 MB, free: 2.648 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.01046, allocations: 0 / 305.1 MB, free: 2.648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.01047, allocations: 4 kB / 305.1 MB, free: 2.645 MB / 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.001498/0.01197, allocations: 0.6534 MB / 305.7 MB, free: 1.961 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.01201, allocations: 15.98 kB / 305.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.01211, allocations: 44.66 kB / 305.8 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000524/0.01264, allocations: 256.5 kB / 306.1 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.01268, allocations: 33.31 kB / 306.1 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.623e-05/0.01276, allocations: 40.27 kB / 306.1 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009106/0.01368, allocations: 442.8 kB / 306.6 MB, free: 1.113 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.0137, allocations: 4.188 kB / 306.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.877e-05/0.01375, allocations: 12.38 kB / 306.6 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.01377, allocations: 15.94 kB / 306.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.01486, allocations: 455.7 kB / 307 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.01728, allocations: 1.051 MB / 308.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008631/0.01814, allocations: 344.3 kB / 308.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005506/0.01869, allocations: 229.5 kB / 308.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.01873, allocations: 8.312 kB / 308.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.01877, allocations: 42.88 kB / 308.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.723e-06/0.01877, allocations: 0 / 308.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005689/0.02446, allocations: 1.949 MB / 310.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.02452, allocations: 55.91 kB / 310.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.02484, allocations: 249.8 kB / 310.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.399e-05/0.0249, allocations: 45.64 kB / 311 MB, free: 12.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.02504, allocations: 172.9 kB / 311.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.0252, allocations: 170.6 kB / 311.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.0254, allocations: 102.3 kB / 311.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.02556, allocations: 346.7 kB / 311.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005188/0.02608, allocations: 229.2 kB / 312 MB, free: 11.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006076/0.02669, allocations: 304.1 kB / 312.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008895/0.02758, allocations: 418.9 kB / 312.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.02758, allocations: 4 kB / 312.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00184/0.02942, allocations: 0.7379 MB / 313.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.02944, allocations: 16.11 kB / 313.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.02945, allocations: 4 kB / 313.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.03082, allocations: 0.545 MB / 314 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.03113, allocations: 71.89 kB / 314.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00356/0.03469, allocations: 3.401 MB / 317.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.03527, allocations: 72.22 kB / 317.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.057e-05/0.03533, allocations: 23.98 kB / 317.6 MB, free: 5.641 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.0003348/0.03566, allocations: 165.3 kB / 317.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.438e-05/0.03576, allocations: 31.81 kB / 317.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001879/0.03764, allocations: 0.7185 MB / 318.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.03765, allocations: 4 kB / 318.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.03765, allocations: 0 / 318.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.03766, allocations: 3.938 kB / 318.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.03995, allocations: 1.111 MB / 319.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.03996, allocations: 0 / 319.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002776/0.04024, allocations: 59.84 kB / 319.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.04128, allocations: 0.5294 MB / 320.2 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/0.04133, allocations: 19.97 kB / 320.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1529/0.1942, allocations: 3.379 MB / 323.6 MB, free: 33.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1942, allocations: 1.719 kB / 323.6 MB, free: 33.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.1963, allocations: 1.021 MB / 324.6 MB, free: 33.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002042/0.1965, allocations: 83.3 kB / 324.7 MB, free: 33.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.96e-05/0.1966, allocations: 14.89 kB / 324.7 MB, free: 33.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005014/0.1971, allocations: 71.73 kB / 324.8 MB, free: 33.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.1973, allocations: 91.91 kB / 324.9 MB, free: 33.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-05/0.1974, allocations: 20.88 kB / 324.9 MB, free: 33.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001554/0.1975, allocations: 175.1 kB / 325.1 MB, free: 33.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1975, allocations: 0 / 325.1 MB, free: 33.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005179/0.198, allocations: 123.2 kB / 325.2 MB, free: 33.31 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.000244/0.1983, allocations: 141.9 kB / 325.3 MB, free: 33.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001482/0.1998, allocations: 0.773 MB / 326.1 MB, free: 32.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1998, allocations: 0 / 326.1 MB, free: 32.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008274/0.2006, allocations: 0.5168 MB / 326.6 MB, free: 32.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.2011, allocations: 70.19 kB / 326.7 MB, free: 32.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.2029, allocations: 0.8574 MB / 327.5 MB, free: 32.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.203, allocations: 200.7 kB / 327.7 MB, free: 32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.2032, allocations: 30.94 kB / 327.8 MB, free: 31.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.411e-05/0.2032, allocations: 32.56 kB / 327.8 MB, free: 31.97 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2032, allocations: 0 / 327.8 MB, free: 31.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01501/0.2183, allocations: 8.566 MB / 336.3 MB, free: 29.39 MB / 302.1 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.677763398736715]