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.000907/0.0009069, allocations: 96.67 kB / 16.65 MB, free: 6.348 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.0009632/0.0009632, allocations: 177.8 kB / 17.56 MB, free: 5.949 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.354/1.354, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002463/0.0002463, allocations: 11.92 kB / 301.4 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09906/0.09933, allocations: 50.41 MB / 351.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002845/0.1022, allocations: 2.473 MB / 354.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.1038, allocations: 0.8882 MB / 355.2 MB, free: 96 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002049/0.104, allocations: 7.938 kB / 355.2 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.1042, allocations: 43.7 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002946/0.1045, allocations: 87.41 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005167/0.105, allocations: 191.7 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000667/0.1057, allocations: 0.5343 MB / 356.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.1059, allocations: 94.59 kB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003513/0.1063, allocations: 219.2 kB / 356.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004547/0.1068, allocations: 251 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.943e-05/0.1069, allocations: 28 kB / 356.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.1071, allocations: 71.89 kB / 356.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.1072, allocations: 87.64 kB / 356.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002453/0.1075, allocations: 224.6 kB / 357 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005774/0.1081, allocations: 498.5 kB / 357.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1081, allocations: 0 / 357.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1081, allocations: 0 / 357.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.1081, allocations: 0 / 357.5 MB, free: 13.78 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.001514/0.1096, allocations: 0.6825 MB / 358.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.1097, allocations: 12.03 kB / 358.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1098, allocations: 44.45 kB / 358.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004323/0.1103, allocations: 306.6 kB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.1103, allocations: 21.38 kB / 358.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.429e-05/0.1104, allocations: 40.28 kB / 358.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008847/0.1113, allocations: 450.6 kB / 359 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.1114, allocations: 8 kB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.439e-05/0.1114, allocations: 12 kB / 359.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1114, allocations: 12 kB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009752/0.1124, allocations: 471.7 kB / 359.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002538/0.1149, allocations: 1.296 MB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009654/0.1159, allocations: 383.4 kB / 361.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000552/0.1165, allocations: 257.5 kB / 361.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.91e-05/0.1165, allocations: 4.375 kB / 361.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.773e-05/0.1166, allocations: 38.94 kB / 361.5 MB, free: 9.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.024e-06/0.1166, allocations: 0 / 361.5 MB, free: 9.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005865/0.1225, allocations: 2.379 MB / 363.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.1226, allocations: 55.84 kB / 363.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.1229, allocations: 258.5 kB / 364.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.982e-05/0.123, allocations: 37.7 kB / 364.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.1232, allocations: 176.6 kB / 364.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.1234, allocations: 165.7 kB / 364.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.1235, allocations: 49.69 kB / 364.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.1237, allocations: 350.8 kB / 364.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005412/0.1242, allocations: 237 kB / 365.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005497/0.1248, allocations: 311.2 kB / 365.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008359/0.1256, allocations: 431.7 kB / 365.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1257, allocations: 4 kB / 365.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001702/0.1274, allocations: 0.7704 MB / 366.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.1274, allocations: 4 kB / 366.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.1274, allocations: 4 kB / 366.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.1286, allocations: 0.549 MB / 367.2 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.1289, allocations: 79.84 kB / 367.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1741/0.303, allocations: 3.453 MB / 370.8 MB, free: 24.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006793/0.3037, allocations: 102.2 kB / 370.9 MB, free: 24.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.276e-05/0.3038, allocations: 19.69 kB / 370.9 MB, free: 24.03 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.0002396/0.304, allocations: 172.6 kB / 371 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.899e-05/0.3041, allocations: 34.47 kB / 371.1 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001682/0.3058, allocations: 0.7404 MB / 371.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.3058, allocations: 5 kB / 371.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.3058, allocations: 6.219 kB / 371.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.3058, allocations: 2.484 kB / 371.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.308, allocations: 1.273 MB / 373.1 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.308, allocations: 0 / 373.1 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.3083, allocations: 60.44 kB / 373.2 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.3093, allocations: 0.5253 MB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.825e-05/0.3094, allocations: 20.33 kB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001995/0.3114, allocations: 3.445 MB / 377.2 MB, free: 20.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3114, allocations: 4.641 kB / 377.2 MB, free: 20.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.3132, allocations: 1.051 MB / 378.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.3134, allocations: 163 kB / 378.4 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.942e-05/0.3135, allocations: 13.5 kB / 378.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004999/0.314, allocations: 103.4 kB / 378.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.3142, allocations: 95.64 kB / 378.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.994e-05/0.3142, allocations: 21.97 kB / 378.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.3144, allocations: 177.4 kB / 378.8 MB, free: 19.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3144, allocations: 0 / 378.8 MB, free: 19.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000483/0.3149, allocations: 123.2 kB / 378.9 MB, free: 19.77 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.0002/0.3151, allocations: 150.2 kB / 379 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.3165, allocations: 0.8224 MB / 379.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3165, allocations: 0 / 379.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008251/0.3173, allocations: 0.5463 MB / 380.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/0.3179, allocations: 63.25 kB / 380.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.3198, allocations: 1.191 MB / 381.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.3201, allocations: 0.7984 MB / 382.5 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001434/0.3202, allocations: 34.09 kB / 382.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.247e-05/0.3203, allocations: 25.94 kB / 382.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3203, allocations: 0 / 382.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01559/0.3359, allocations: 9.279 MB / 391.8 MB, free: 13.99 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/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_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches