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.00113/0.00113, allocations: 105 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 191.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003105/0.0003106, allocations: 4 kB / 307.1 MB, free: 1.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1085, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003341/0.1119, allocations: 2.515 MB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.1137, allocations: 1.006 MB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.114, allocations: 4 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.1143, allocations: 59.62 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004336/0.1147, allocations: 135.2 kB / 362.3 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.1151, allocations: 143.7 kB / 362.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.1157, allocations: 0.515 MB / 363 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.1159, allocations: 94.02 kB / 363.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/0.1162, allocations: 227.1 kB / 363.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003036/0.1165, allocations: 263.1 kB / 363.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.549e-05/0.1166, allocations: 24 kB / 363.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.1168, allocations: 71.98 kB / 363.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.1169, allocations: 103.6 kB / 363.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.444e-05/0.117, allocations: 89.52 kB / 363.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004261/0.1174, allocations: 423.2 kB / 364.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1174, allocations: 0 / 364.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1175, allocations: 0 / 364.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1175, allocations: 4 kB / 364.3 MB, free: 7.953 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.001295/0.1188, allocations: 0.7329 MB / 365 MB, free: 7.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.1188, allocations: 8.031 kB / 365 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.768e-05/0.1189, allocations: 47.53 kB / 365.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.1193, allocations: 309.3 kB / 365.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.1193, allocations: 29 kB / 365.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.207e-05/0.1194, allocations: 36 kB / 365.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008223/0.1202, allocations: 446.3 kB / 365.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.1203, allocations: 7.906 kB / 365.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.1203, allocations: 12 kB / 365.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1203, allocations: 12 kB / 365.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009454/0.1213, allocations: 467.6 kB / 366.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.1235, allocations: 1.301 MB / 367.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008361/0.1243, allocations: 404.9 kB / 368 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004684/0.1248, allocations: 254.1 kB / 368.3 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.001e-05/0.1249, allocations: 12.42 kB / 368.3 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1249, allocations: 39 kB / 368.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.723e-06/0.1249, allocations: 0 / 368.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005126/0.13, allocations: 2.373 MB / 370.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.1301, allocations: 63.78 kB / 370.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.1304, allocations: 266.6 kB / 371 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.845e-05/0.1304, allocations: 45.69 kB / 371.1 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.823e-05/0.1305, allocations: 168.7 kB / 371.2 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1307, allocations: 185.5 kB / 371.4 MB, free: 448 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.1307, allocations: 8 kB / 371.4 MB, free: 440 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1309, allocations: 350.8 kB / 371.8 MB, free: 80 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1562/0.2871, allocations: 216.9 kB / 372 MB, free: 19.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.2877, allocations: 293.5 kB / 372.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.2881, allocations: 184.6 kB / 372.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2881, allocations: 1.125 kB / 372.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001599/0.2897, allocations: 0.7387 MB / 373.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2897, allocations: 5.375 kB / 373.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2898, allocations: 5.312 kB / 373.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.2909, allocations: 429.7 kB / 373.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.2912, allocations: 71.25 kB / 373.7 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002278/0.2935, allocations: 3.46 MB / 377.2 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.294, allocations: 102.5 kB / 377.3 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.294, allocations: 22.16 kB / 377.3 MB, free: 16.05 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.0001997/0.2943, allocations: 168.8 kB / 377.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.724e-05/0.2943, allocations: 38.7 kB / 377.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.2959, allocations: 0.7354 MB / 378.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2959, allocations: 5.5 kB / 378.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2959, allocations: 1.375 kB / 378.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.2959, allocations: 3.094 kB / 378.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.298, allocations: 1.299 MB / 379.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.2981, allocations: 1.344 kB / 379.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002846/0.2984, allocations: 55.08 kB / 379.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008773/0.2992, allocations: 414.1 kB / 380 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.601e-05/0.2993, allocations: 17.48 kB / 380 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/0.3014, allocations: 3.418 MB / 383.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3014, allocations: 1.594 kB / 383.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.3033, allocations: 1.05 MB / 384.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.3034, allocations: 164.8 kB / 384.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.965e-05/0.3035, allocations: 15.38 kB / 384.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004603/0.304, allocations: 97.81 kB / 384.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.3042, allocations: 114.9 kB / 384.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.3043, allocations: 25.91 kB / 384.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.3045, allocations: 189.5 kB / 385.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3045, allocations: 0 / 385.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005201/0.305, allocations: 121.3 kB / 385.2 MB, free: 10.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008901/0.3059, allocations: 380.6 kB / 385.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.3075, allocations: 0.8008 MB / 386.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3076, allocations: 0 / 386.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008199/0.3084, allocations: 0.543 MB / 386.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.3089, allocations: 77.77 kB / 387 MB, free: 9.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.3109, allocations: 1.209 MB / 388.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.3112, allocations: 0.8082 MB / 389 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.3113, allocations: 39 kB / 389 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.59e-05/0.3114, allocations: 32.5 kB / 389.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3114, allocations: 4.906 kB / 389.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of Templates: time 0.0138/0.3252, allocations: 9.041 MB / 398.1 MB, free: 4.699 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