Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001234/0.001234, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000839/0.0008391, allocations: 74.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.565e-05/3.579e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09813, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3565/0.4547, allocations: 80.38 MB / 450.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.4549, allocations: 70.59 kB / 450.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01943/0.4744, allocations: 6.715 MB / 457.2 MB, free: 7.055 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4744, allocations: 0 / 457.2 MB, free: 7.055 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.4745, allocations: 8 kB / 457.2 MB, free: 7.047 MB / 330.7 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.001314/0.4758, allocations: 0.665 MB / 457.9 MB, free: 6.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.4758, allocations: 8.031 kB / 457.9 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.476, allocations: 43.44 kB / 457.9 MB, free: 6.312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.4764, allocations: 292.7 kB / 458.2 MB, free: 6.012 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.465e-05/0.4765, allocations: 27.16 kB / 458.2 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.22e-05/0.4766, allocations: 42.58 kB / 458.3 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007477/0.4773, allocations: 391 kB / 458.6 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.4774, allocations: 0 / 458.6 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.786e-05/0.4774, allocations: 14.94 kB / 458.7 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.4774, allocations: 8 kB / 458.7 MB, free: 5.684 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006623/0.4781, allocations: 371.3 kB / 459 MB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002488/0.4806, allocations: 1.302 MB / 460.3 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000641/0.4813, allocations: 334 kB / 460.7 MB, free: 4.074 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.4816, allocations: 222.1 kB / 460.9 MB, free: 3.855 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.829e-05/0.4817, allocations: 8.5 kB / 460.9 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.4817, allocations: 43 kB / 460.9 MB, free: 3.797 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 1.744e-06/0.4817, allocations: 0 / 460.9 MB, free: 3.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.003131/0.4849, allocations: 1.587 MB / 462.5 MB, free: 2.109 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.4849, allocations: 55.84 kB / 462.6 MB, free: 2.039 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.4852, allocations: 199 kB / 462.8 MB, free: 1.836 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.4852, allocations: 45.69 kB / 462.8 MB, free: 1.785 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.4853, allocations: 160.8 kB / 463 MB, free: 1.625 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.4855, allocations: 177.6 kB / 463.1 MB, free: 1.449 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.4855, allocations: 8 kB / 463.1 MB, free: 1.441 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4857, allocations: 346.8 kB / 463.5 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.4861, allocations: 189 kB / 463.7 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.4864, allocations: 251.3 kB / 463.9 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.4867, allocations: 159.2 kB / 464.1 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4867, allocations: 0 / 464.1 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001637/0.4884, allocations: 0.6922 MB / 464.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.4884, allocations: 8 kB / 464.8 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.4884, allocations: 4 kB / 464.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000911/0.4893, allocations: 438.4 kB / 465.2 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.4896, allocations: 75.91 kB / 465.3 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.4925, allocations: 3.382 MB / 468.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005299/0.493, allocations: 100 kB / 468.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.131e-05/0.4931, allocations: 31.97 kB / 468.8 MB, free: 11.46 MB / 346.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001859/0.4933, allocations: 138.6 kB / 468.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.383e-05/0.4934, allocations: 35.58 kB / 468.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.4949, allocations: 0.7105 MB / 469.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.4949, allocations: 8 kB / 469.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4949, allocations: 3.953 kB / 469.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.4949, allocations: 3.984 kB / 469.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.4967, allocations: 1.155 MB / 470.8 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4967, allocations: 0 / 470.8 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00028/0.497, allocations: 55.95 kB / 470.9 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008463/0.4979, allocations: 426.2 kB / 471.3 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.773e-05/0.4979, allocations: 19.97 kB / 471.3 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002577/0.5005, allocations: 3.358 MB / 474.7 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5005, allocations: 0 / 474.7 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.502, allocations: 0.8913 MB / 475.6 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002519/0.5023, allocations: 152.7 kB / 475.7 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.264e-05/0.5023, allocations: 20 kB / 475.7 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.5028, allocations: 100 kB / 475.8 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002158/0.5031, allocations: 104.2 kB / 475.9 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.528e-05/0.5031, allocations: 27.91 kB / 476 MB, free: 3.836 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001706/0.5033, allocations: 171.1 kB / 476.1 MB, free: 3.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5033, allocations: 0 / 476.1 MB, free: 3.668 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005187/0.5038, allocations: 124 kB / 476.3 MB, free: 3.547 MB / 346.7 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002667/0.5041, allocations: 155 kB / 476.4 MB, free: 3.387 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.5054, allocations: 0.7623 MB / 477.2 MB, free: 2.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5054, allocations: 256 / 477.2 MB, free: 2.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007677/0.5062, allocations: 0.5018 MB / 477.7 MB, free: 2.062 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.5066, allocations: 50.53 kB / 477.7 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.5082, allocations: 0.7972 MB / 478.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.5086, allocations: 0.8075 MB / 479.3 MB, free: 368 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.5088, allocations: 31.28 kB / 479.4 MB, free: 340 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.316e-05/0.5088, allocations: 27.42 kB / 479.4 MB, free: 312 kB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5088, allocations: 0 / 479.4 MB, free: 312 kB / 346.7 MB Notification: Performance of Templates: time 0.01365/0.5225, allocations: 8.491 MB / 487.9 MB, free: 7.809 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches