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.001173/0.001173, allocations: 112 kB / 17.99 MB, free: 5.215 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 205.8 kB / 18.92 MB, free: 4.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.1 MB, free: 10.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 71.36 kB / 307.1 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 50.52 MB / 357.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004675/0.1063, allocations: 2.991 MB / 360.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.1082, allocations: 1.041 MB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002705/0.1085, allocations: 8 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003436/0.1089, allocations: 59.5 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004578/0.1094, allocations: 139.2 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004444/0.1098, allocations: 159.8 kB / 362 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007126/0.1106, allocations: 0.6047 MB / 362.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.1108, allocations: 114.7 kB / 362.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004247/0.1113, allocations: 263.1 kB / 363 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004482/0.1117, allocations: 287 kB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.1119, allocations: 52 kB / 363.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002371/0.1121, allocations: 107.9 kB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.1123, allocations: 127.6 kB / 363.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002654/0.1126, allocations: 234.9 kB / 363.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.1131, allocations: 443.2 kB / 364.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1131, allocations: 4 kB / 364.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1131, allocations: 0 / 364.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.1132, allocations: 0 / 364.2 MB, free: 7.715 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.001609/0.1148, allocations: 0.7681 MB / 365 MB, free: 6.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1148, allocations: 12.03 kB / 365 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.115, allocations: 44.38 kB / 365.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.1154, allocations: 322.5 kB / 365.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.1154, allocations: 29.38 kB / 365.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-05/0.1155, allocations: 36.38 kB / 365.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009389/0.1165, allocations: 438.6 kB / 365.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.1165, allocations: 3.906 kB / 365.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/0.1166, allocations: 23.92 kB / 365.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1166, allocations: 8 kB / 365.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009823/0.1176, allocations: 439.7 kB / 366.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.12, allocations: 1.285 MB / 367.6 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009219/0.121, allocations: 409 kB / 368 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004978/0.1215, allocations: 242.1 kB / 368.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.502e-05/0.1216, allocations: 8.422 kB / 368.3 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.1216, allocations: 39 kB / 368.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.873e-06/0.1216, allocations: 0 / 368.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005652/0.1273, allocations: 2.252 MB / 370.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.1273, allocations: 63.78 kB / 370.6 MB, free: 1.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.1277, allocations: 274.5 kB / 370.9 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.072e-05/0.1278, allocations: 41.7 kB / 370.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1279, allocations: 168.8 kB / 371.1 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.1281, allocations: 189.4 kB / 371.3 MB, free: 336 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.1283, allocations: 102.2 kB / 371.4 MB, free: 228 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1693/0.2976, allocations: 342.8 kB / 371.7 MB, free: 20.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007066/0.2983, allocations: 216.3 kB / 371.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005595/0.2989, allocations: 284.3 kB / 372.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008223/0.2997, allocations: 400.8 kB / 372.6 MB, free: 20.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2997, allocations: 1.75 kB / 372.6 MB, free: 20.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001674/0.3014, allocations: 0.7347 MB / 373.3 MB, free: 19.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3014, allocations: 5.906 kB / 373.3 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3014, allocations: 1.781 kB / 373.3 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.3026, allocations: 434.4 kB / 373.7 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.3029, allocations: 68.61 kB / 373.8 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.3054, allocations: 3.643 MB / 377.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.3059, allocations: 77.31 kB / 377.5 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.995e-05/0.306, allocations: 21.59 kB / 377.6 MB, free: 16.32 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.0002228/0.3062, allocations: 171.8 kB / 377.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.886e-05/0.3063, allocations: 40.09 kB / 377.8 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.3079, allocations: 0.7167 MB / 378.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.308, allocations: 6.875 kB / 378.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.308, allocations: 1.125 kB / 378.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.308, allocations: 8.703 kB / 378.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/0.3102, allocations: 1.285 MB / 379.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3102, allocations: 4 kB / 379.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.3105, allocations: 59.55 kB / 379.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000932/0.3115, allocations: 407.6 kB / 380.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.478e-05/0.3115, allocations: 18.19 kB / 380.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.3137, allocations: 3.617 MB / 383.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3137, allocations: 0 / 383.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.3157, allocations: 1.032 MB / 384.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.3159, allocations: 161.1 kB / 385.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.635e-05/0.316, allocations: 18.98 kB / 385.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.3165, allocations: 73.97 kB / 385.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002697/0.3168, allocations: 95.52 kB / 385.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.984e-05/0.3168, allocations: 20.25 kB / 385.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.317, allocations: 192.3 kB / 385.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.342e-06/0.3171, allocations: 0 / 385.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005236/0.3176, allocations: 129.6 kB / 385.6 MB, free: 10.73 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.0008449/0.3184, allocations: 373.3 kB / 385.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.3202, allocations: 0.8201 MB / 386.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3202, allocations: 1.875 kB / 386.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008755/0.3211, allocations: 0.5284 MB / 387.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005965/0.3217, allocations: 72.88 kB / 387.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.3238, allocations: 1.209 MB / 388.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.324, allocations: 0.8075 MB / 389.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3242, allocations: 37.62 kB / 389.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3242, allocations: 3.938 kB / 389.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of Templates: time 0.0122/0.3364, allocations: 9.452 MB / 398.9 MB, free: 4.457 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/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