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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007909/0.0007911, allocations: 91.8 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000854/0.0008541, allocations: 175.3 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.134/1.134, allocations: 223.3 MB / 242.3 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002123/0.0002124, allocations: 12.94 kB / 302.1 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07045/0.07067, allocations: 50.41 MB / 352.5 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00235/0.07304, allocations: 2.469 MB / 355 MB, free: 1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.07438, allocations: 0.8882 MB / 355.8 MB, free: 108 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.07455, allocations: 7.938 kB / 355.9 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.07471, allocations: 47.69 kB / 355.9 MB, free: 52 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.07495, allocations: 83.3 kB / 356 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003731/0.07533, allocations: 191.7 kB / 356.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004434/0.07579, allocations: 0.5383 MB / 356.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.07597, allocations: 101.8 kB / 356.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.07622, allocations: 215.2 kB / 357 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.0765, allocations: 251 kB / 357.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/0.07656, allocations: 24 kB / 357.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.0767, allocations: 67.95 kB / 357.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.67e-05/0.07681, allocations: 87.64 kB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.07698, allocations: 224.6 kB / 357.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.0773, allocations: 375.3 kB / 358 MB, free: 13.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.07731, allocations: 0 / 358 MB, free: 13.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.07732, allocations: 4 kB / 358 MB, free: 13.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.07733, allocations: 0 / 358 MB, free: 13.91 MB / 302.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.001112/0.07845, allocations: 0.6864 MB / 358.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.842e-05/0.07848, allocations: 8.031 kB / 358.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.093e-05/0.07857, allocations: 44.47 kB / 358.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.07886, allocations: 306.6 kB / 359.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.0789, allocations: 21.38 kB / 359.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.962e-05/0.07897, allocations: 40.28 kB / 359.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007443/0.07972, allocations: 454.6 kB / 359.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.07975, allocations: 4 kB / 359.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.98e-05/0.07979, allocations: 12 kB / 359.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.07981, allocations: 8 kB / 359.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008355/0.08065, allocations: 475.7 kB / 360.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.08262, allocations: 1.296 MB / 361.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007/0.08333, allocations: 376.6 kB / 361.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004224/0.08376, allocations: 256.8 kB / 362 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.0838, allocations: 4.375 kB / 362 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.08383, allocations: 46.92 kB / 362 MB, free: 9.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.403e-06/0.08384, allocations: 0 / 362 MB, free: 9.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.00461/0.08845, allocations: 2.375 MB / 364.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.08849, allocations: 67.72 kB / 364.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.08871, allocations: 254.5 kB / 364.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.08876, allocations: 37.7 kB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.139e-05/0.08886, allocations: 172.7 kB / 364.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.08898, allocations: 165.7 kB / 365.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.899e-05/0.08905, allocations: 45.7 kB / 365.1 MB, free: 6.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.08916, allocations: 346.8 kB / 365.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004338/0.0896, allocations: 245 kB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/0.09007, allocations: 307.2 kB / 366 MB, free: 5.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007146/0.09079, allocations: 431.7 kB / 366.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.0908, allocations: 3.938 kB / 366.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001391/0.0922, allocations: 0.7704 MB / 367.2 MB, free: 4.316 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.09222, allocations: 4 kB / 367.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.09223, allocations: 4 kB / 367.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009467/0.09318, allocations: 0.5568 MB / 367.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.09345, allocations: 75.89 kB / 367.8 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1297/0.2231, allocations: 3.447 MB / 371.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006064/0.2238, allocations: 100.9 kB / 371.4 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.923e-05/0.2238, allocations: 22.44 kB / 371.4 MB, free: 24.05 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.0002234/0.2241, allocations: 166.9 kB / 371.6 MB, free: 23.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.798e-05/0.2241, allocations: 34.41 kB / 371.6 MB, free: 23.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.2257, allocations: 0.7383 MB / 372.3 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.2257, allocations: 10.09 kB / 372.3 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2257, allocations: 1.062 kB / 372.4 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.2258, allocations: 6.422 kB / 372.4 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.2277, allocations: 1.268 MB / 373.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2277, allocations: 0.9375 kB / 373.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.228, allocations: 61.77 kB / 373.7 MB, free: 23.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009043/0.2289, allocations: 0.5384 MB / 374.2 MB, free: 23.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.6e-05/0.2289, allocations: 19.11 kB / 374.2 MB, free: 23.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.2307, allocations: 3.443 MB / 377.7 MB, free: 20.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2308, allocations: 0.5156 kB / 377.7 MB, free: 20.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.2324, allocations: 1.055 MB / 378.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.2325, allocations: 158.1 kB / 378.9 MB, free: 19.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.295e-05/0.2326, allocations: 14.2 kB / 378.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004579/0.233, allocations: 99.44 kB / 379 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.2332, allocations: 87.06 kB / 379.1 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.575e-05/0.2333, allocations: 19.91 kB / 379.1 MB, free: 19.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001332/0.2334, allocations: 182.8 kB / 379.3 MB, free: 19.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.2334, allocations: 0 / 379.3 MB, free: 19.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004284/0.2338, allocations: 127.5 kB / 379.4 MB, free: 19.82 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.0001761/0.234, allocations: 148 kB / 379.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.2353, allocations: 0.827 MB / 380.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2353, allocations: 0 / 380.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007019/0.236, allocations: 0.5434 MB / 380.9 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.2365, allocations: 63.03 kB / 381 MB, free: 18.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.2381, allocations: 1.226 MB / 382.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.2383, allocations: 0.7967 MB / 383 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.509e-05/0.2384, allocations: 28.53 kB / 383 MB, free: 17.45 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2384, allocations: 0 / 383 MB, free: 17.45 MB / 302.1 MB Notification: Performance of Templates: time 0.009768/0.2482, allocations: 8.837 MB / 391.9 MB, free: 14.09 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches