Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000806/0.0008057, allocations: 96.72 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009349/0.0009349, allocations: 209.9 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.8 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000225/0.000225, allocations: 4 kB / 307.7 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09193, allocations: 51.52 MB / 359.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002902/0.09487, allocations: 2.622 MB / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.09637, allocations: 1.025 MB / 362.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.0965, allocations: 4 kB / 362.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002352/0.09674, allocations: 67.48 kB / 363 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.09704, allocations: 135.2 kB / 363.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.09733, allocations: 159.8 kB / 363.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004983/0.09783, allocations: 0.5813 MB / 363.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.09802, allocations: 90.61 kB / 363.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002706/0.0983, allocations: 239.1 kB / 364.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003244/0.09863, allocations: 267 kB / 364.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.817e-05/0.0987, allocations: 27.94 kB / 364.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.09886, allocations: 79.95 kB / 364.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.09901, allocations: 99.62 kB / 364.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.09924, allocations: 236.6 kB / 364.9 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.09974, allocations: 0.5336 MB / 365.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.09975, allocations: 0 / 365.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.09976, allocations: 0 / 365.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.09977, allocations: 0 / 365.4 MB, free: 7.133 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001307/0.1011, allocations: 0.7292 MB / 366.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.1011, allocations: 8.031 kB / 366.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.27e-05/0.1012, allocations: 48.47 kB / 366.2 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.1016, allocations: 322.4 kB / 366.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.305e-05/0.1016, allocations: 29.38 kB / 366.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.1017, allocations: 40.31 kB / 366.6 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008516/0.1026, allocations: 446.6 kB / 367 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.1026, allocations: 3.906 kB / 367 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.1027, allocations: 20 kB / 367 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.088e-06/0.1027, allocations: 8 kB / 367 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.1037, allocations: 463.6 kB / 367.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.1061, allocations: 1.308 MB / 368.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008941/0.107, allocations: 408.3 kB / 369.2 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005226/0.1075, allocations: 250.1 kB / 369.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.103e-05/0.1075, allocations: 8.422 kB / 369.4 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.1076, allocations: 39 kB / 369.5 MB, free: 2.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.743e-06/0.1076, allocations: 4 kB / 369.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005648/0.1132, allocations: 2.373 MB / 371.9 MB, free: 360 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.1133, allocations: 67.72 kB / 371.9 MB, free: 276 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.1136, allocations: 266.7 kB / 372.2 MB, free: 0 / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.1634/0.277, allocations: 42.09 kB / 372.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.2772, allocations: 167.3 kB / 372.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.2774, allocations: 186.4 kB / 372.6 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.748e-05/0.2775, allocations: 50.33 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.919e-05/0.2776, allocations: 343.5 kB / 373 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005688/0.2781, allocations: 230.3 kB / 373.2 MB, free: 19.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005741/0.2787, allocations: 293.5 kB / 373.5 MB, free: 19.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008419/0.2796, allocations: 412.9 kB / 373.9 MB, free: 19.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2796, allocations: 0 / 373.9 MB, free: 19.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001817/0.2814, allocations: 0.7465 MB / 374.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.2814, allocations: 6 kB / 374.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2815, allocations: 1.844 kB / 374.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.2826, allocations: 430.9 kB / 375 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.2829, allocations: 76 kB / 375.1 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.2853, allocations: 3.461 MB / 378.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005981/0.286, allocations: 101.2 kB / 378.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.286, allocations: 27.09 kB / 378.7 MB, free: 15.73 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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002128/0.2862, allocations: 174.5 kB / 378.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.996e-05/0.2863, allocations: 37.41 kB / 378.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.288, allocations: 0.7346 MB / 379.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.288, allocations: 6.219 kB / 379.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2881, allocations: 0 / 379.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.2881, allocations: 3.609 kB / 379.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.2904, allocations: 1.306 MB / 381 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2904, allocations: 1.156 kB / 381 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002837/0.2907, allocations: 64.97 kB / 381 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.2917, allocations: 404.8 kB / 381.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.011e-05/0.2918, allocations: 23.23 kB / 381.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.294, allocations: 3.425 MB / 384.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.294, allocations: 0.5625 kB / 384.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.296, allocations: 1.052 MB / 385.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.2962, allocations: 165.5 kB / 386.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.703e-05/0.2963, allocations: 19.3 kB / 386.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005567/0.2968, allocations: 99.53 kB / 386.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002561/0.2971, allocations: 101.8 kB / 386.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.717e-05/0.2972, allocations: 23.75 kB / 386.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000193/0.2974, allocations: 191.5 kB / 386.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2974, allocations: 0 / 386.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005827/0.2979, allocations: 117.6 kB / 386.6 MB, free: 10.26 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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.299, allocations: 377 kB / 387 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.3007, allocations: 0.8073 MB / 387.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3007, allocations: 256 / 387.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008863/0.3016, allocations: 0.5482 MB / 388.3 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005768/0.3022, allocations: 71.61 kB / 388.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.3043, allocations: 1.26 MB / 389.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.3046, allocations: 0.8079 MB / 390.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.3047, allocations: 30.58 kB / 390.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.3048, allocations: 41.89 kB / 390.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3048, allocations: 0 / 390.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01478/0.3196, allocations: 9.314 MB / 399.9 MB, free: 4.031 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches