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.001496/0.001496, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 61.31 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09409, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004262/0.09839, allocations: 2.958 MB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.1, allocations: 1.056 MB / 362.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.1002, allocations: 7.938 kB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002673/0.1005, allocations: 71.36 kB / 363 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003116/0.1008, allocations: 162.8 kB / 363.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.1011, allocations: 179.7 kB / 363.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005238/0.1017, allocations: 0.6124 MB / 363.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1019, allocations: 106.7 kB / 364 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.1021, allocations: 263.2 kB / 364.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003159/0.1025, allocations: 287 kB / 364.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.753e-05/0.1025, allocations: 48 kB / 364.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.1027, allocations: 104 kB / 364.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.1029, allocations: 127.6 kB / 364.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.1031, allocations: 238.8 kB / 365.1 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005502/0.1037, allocations: 0.5724 MB / 365.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.279e-06/0.1037, allocations: 0 / 365.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1037, allocations: 0 / 365.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1037, allocations: 0 / 365.7 MB, free: 6.562 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.001397/0.1051, allocations: 0.7758 MB / 366.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.1051, allocations: 12.03 kB / 366.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.1053, allocations: 48.38 kB / 366.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005018/0.1058, allocations: 318.5 kB / 366.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.1058, allocations: 37.31 kB / 366.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.892e-05/0.1059, allocations: 36.31 kB / 366.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008215/0.1067, allocations: 442.6 kB / 367.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1068, allocations: 3.906 kB / 367.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/0.1068, allocations: 16 kB / 367.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.1068, allocations: 8 kB / 367.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009174/0.1077, allocations: 443.7 kB / 367.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.1099, allocations: 1.277 MB / 369 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008188/0.1107, allocations: 409.9 kB / 369.4 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004433/0.1112, allocations: 242.1 kB / 369.7 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.393e-05/0.1113, allocations: 4.438 kB / 369.7 MB, free: 2.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.1113, allocations: 39 kB / 369.7 MB, free: 2.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.643e-06/0.1113, allocations: 4 kB / 369.7 MB, free: 2.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.1525/0.2638, allocations: 2.241 MB / 372 MB, free: 20.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.2639, allocations: 61.02 kB / 372 MB, free: 20.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.2643, allocations: 270.6 kB / 372.3 MB, free: 20.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001507/0.2645, allocations: 46.34 kB / 372.3 MB, free: 20.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.2646, allocations: 174.8 kB / 372.5 MB, free: 20.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.2648, allocations: 179.2 kB / 372.7 MB, free: 20.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.2651, allocations: 96.92 kB / 372.8 MB, free: 20.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.639e-05/0.2652, allocations: 347.2 kB / 373.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005129/0.2657, allocations: 219.7 kB / 373.3 MB, free: 20.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000535/0.2662, allocations: 292.4 kB / 373.6 MB, free: 20 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007994/0.267, allocations: 393.7 kB / 374 MB, free: 19.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.267, allocations: 2 kB / 374 MB, free: 19.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001681/0.2687, allocations: 0.7327 MB / 374.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.2688, allocations: 6.188 kB / 374.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.2688, allocations: 1.781 kB / 374.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.2699, allocations: 440.2 kB / 375.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.2702, allocations: 69.66 kB / 375.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.2726, allocations: 3.644 MB / 378.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.2731, allocations: 74.88 kB / 379 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/0.2732, allocations: 22.14 kB / 379 MB, free: 15.85 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.000196/0.2734, allocations: 167 kB / 379.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.2735, allocations: 46.31 kB / 379.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.275, allocations: 0.722 MB / 379.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2751, allocations: 5.438 kB / 379.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2751, allocations: 3.844 kB / 379.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.2751, allocations: 2.625 kB / 379.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002185/0.2773, allocations: 1.28 MB / 381.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2773, allocations: 1.125 kB / 381.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.2776, allocations: 60.75 kB / 381.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009367/0.2785, allocations: 415.2 kB / 381.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.376e-05/0.2786, allocations: 18.56 kB / 381.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002287/0.2809, allocations: 3.616 MB / 385.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.2809, allocations: 0.6562 kB / 385.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.2829, allocations: 1.027 MB / 386.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.2831, allocations: 160.4 kB / 386.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.525e-05/0.2832, allocations: 22.39 kB / 386.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.2837, allocations: 69.27 kB / 386.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.2839, allocations: 95.25 kB / 386.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.807e-05/0.284, allocations: 21.12 kB / 386.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001801/0.2842, allocations: 195.1 kB / 386.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2842, allocations: 0 / 386.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005313/0.2847, allocations: 120.9 kB / 387 MB, free: 10.2 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.0008287/0.2856, allocations: 393 kB / 387.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.2872, allocations: 0.7974 MB / 388.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2872, allocations: 0 / 388.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008537/0.2881, allocations: 0.5341 MB / 388.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.2887, allocations: 72.09 kB / 388.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.2906, allocations: 1.005 MB / 389.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.2909, allocations: 0.8135 MB / 390.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.2911, allocations: 31.58 kB / 390.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.2912, allocations: 35.61 kB / 390.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2912, allocations: 0 / 390.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of Templates: time 0.01539/0.3066, allocations: 9.995 MB / 400.7 MB, free: 3.891 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 -s gbode -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/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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches