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.001723/0.001723, allocations: 114.1 kB / 17.69 MB, free: 5.312 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.002014/0.002014, allocations: 191 kB / 18.63 MB, free: 4.379 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.365/1.365, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 51.73 kB / 302.1 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1012, allocations: 49.44 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003786/0.105, allocations: 2.813 MB / 354.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1064, allocations: 0.892 MB / 355.2 MB, free: 16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.1066, allocations: 4 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.1068, allocations: 59.44 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002086/0.107, allocations: 111 kB / 355.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.1075, allocations: 215.6 kB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000517/0.108, allocations: 0.5735 MB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.1082, allocations: 110.7 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.1085, allocations: 239.3 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.1088, allocations: 275 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.81e-05/0.1089, allocations: 44 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.1091, allocations: 99.94 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.1092, allocations: 111.6 kB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.1094, allocations: 218.9 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005396/0.1099, allocations: 0.5295 MB / 357.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.11, allocations: 0 / 357.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.729e-06/0.11, allocations: 0 / 357.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.11, allocations: 3.938 kB / 357.8 MB, free: 13.43 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.001394/0.1114, allocations: 0.737 MB / 358.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1114, allocations: 8.031 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.485e-05/0.1115, allocations: 44.47 kB / 358.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004307/0.112, allocations: 314.5 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.112, allocations: 21.38 kB / 358.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.32e-05/0.1121, allocations: 40.28 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007987/0.1129, allocations: 442.6 kB / 359.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.1129, allocations: 0 / 359.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.113, allocations: 20 kB / 359.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.113, allocations: 8 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009118/0.1139, allocations: 463.6 kB / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.1161, allocations: 1.261 MB / 361.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007864/0.1169, allocations: 366.7 kB / 361.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.1174, allocations: 249.5 kB / 361.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.297e-05/0.1174, allocations: 8.375 kB / 361.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.1175, allocations: 34.94 kB / 361.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.724e-06/0.1175, allocations: 0 / 361.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004987/0.1225, allocations: 2.258 MB / 364 MB, free: 6.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.1225, allocations: 55.84 kB / 364.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.1228, allocations: 254.5 kB / 364.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.1228, allocations: 41.69 kB / 364.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.123, allocations: 176.6 kB / 364.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.1231, allocations: 161.7 kB / 364.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.1233, allocations: 102.1 kB / 364.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1234, allocations: 342.8 kB / 365.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004657/0.1239, allocations: 229 kB / 365.3 MB, free: 5.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.1244, allocations: 307.2 kB / 365.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007792/0.1252, allocations: 423.7 kB / 366 MB, free: 4.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1252, allocations: 0 / 366 MB, free: 4.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001506/0.1267, allocations: 0.7549 MB / 366.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1267, allocations: 7.938 kB / 366.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.1267, allocations: 4 kB / 366.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.1278, allocations: 0.5411 MB / 367.3 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.1281, allocations: 75.89 kB / 367.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1624/0.2905, allocations: 3.647 MB / 371.1 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006612/0.2912, allocations: 75.94 kB / 371.1 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.276e-05/0.2913, allocations: 18.38 kB / 371.2 MB, free: 24.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 (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.0002619/0.2915, allocations: 171.8 kB / 371.3 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.2917, allocations: 38.62 kB / 371.4 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.2933, allocations: 0.7172 MB / 372.1 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.2933, allocations: 7.375 kB / 372.1 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2933, allocations: 0.6094 kB / 372.1 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2933, allocations: 2.578 kB / 372.1 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.2956, allocations: 1.26 MB / 373.4 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2956, allocations: 3.656 kB / 373.4 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002715/0.2959, allocations: 52.34 kB / 373.4 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.2969, allocations: 0.5396 MB / 374 MB, free: 24.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.323e-05/0.297, allocations: 20.59 kB / 374 MB, free: 24.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.2991, allocations: 3.628 MB / 377.6 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2991, allocations: 0.6094 kB / 377.6 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.3009, allocations: 1.034 MB / 378.6 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.3011, allocations: 156.6 kB / 378.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.89e-05/0.3012, allocations: 15.48 kB / 378.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004375/0.3017, allocations: 73.19 kB / 378.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.3019, allocations: 86.52 kB / 379 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/0.302, allocations: 21.41 kB / 379 MB, free: 20.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.3021, allocations: 178 kB / 379.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3021, allocations: 3.719 kB / 379.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005201/0.3027, allocations: 124.7 kB / 379.3 MB, free: 19.95 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.0002128/0.3029, allocations: 146 kB / 379.4 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3044, allocations: 0.8057 MB / 380.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3045, allocations: 0 / 380.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008339/0.3053, allocations: 0.5428 MB / 380.8 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004869/0.3058, allocations: 61.38 kB / 380.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.3076, allocations: 0.9558 MB / 381.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.3079, allocations: 0.7973 MB / 382.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.308, allocations: 39.02 kB / 382.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.418e-05/0.3081, allocations: 32.09 kB / 382.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3081, allocations: 4 kB / 382.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of Templates: time 0.01418/0.3223, allocations: 9.982 MB / 392.6 MB, free: 14.12 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 -s cvode -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