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.001237/0.001237, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.477/1.477, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.000859/0.000859, allocations: 98.59 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003825, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3188, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1016/0.4205, allocations: 80.48 MB / 456.3 MB, free: 196 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00038/0.421, allocations: 71.95 kB / 456.4 MB, free: 124 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0207/0.4417, allocations: 6.733 MB / 463.1 MB, free: 9.375 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4417, allocations: 0 / 463.1 MB, free: 9.375 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.4418, allocations: 15.98 kB / 463.1 MB, free: 9.359 MB / 346.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.001813/0.4436, allocations: 0.6862 MB / 463.8 MB, free: 8.621 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.4437, allocations: 8.031 kB / 463.8 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.4439, allocations: 39.53 kB / 463.8 MB, free: 8.574 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.4444, allocations: 293.4 kB / 464.1 MB, free: 8.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.4445, allocations: 33 kB / 464.2 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.4446, allocations: 35.94 kB / 464.2 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009854/0.4456, allocations: 426.3 kB / 464.6 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.4456, allocations: 0 / 464.6 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.857e-05/0.4457, allocations: 19.94 kB / 464.6 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.4457, allocations: 8 kB / 464.6 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.4467, allocations: 427.7 kB / 465.1 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.4498, allocations: 1.302 MB / 466.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007997/0.4506, allocations: 368.7 kB / 466.7 MB, free: 5.566 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.763e-05/0.4506, allocations: 8.375 kB / 466.7 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.4507, allocations: 43 kB / 466.8 MB, free: 5.508 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 2.975e-06/0.4507, allocations: 0 / 466.8 MB, free: 5.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.00557/0.4563, allocations: 2.296 MB / 469.1 MB, free: 3.078 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.4564, allocations: 55.84 kB / 469.1 MB, free: 3.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.4566, allocations: 209.7 kB / 469.3 MB, free: 2.805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.162e-05/0.4567, allocations: 37.7 kB / 469.4 MB, free: 2.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.4569, allocations: 164.9 kB / 469.5 MB, free: 2.594 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.457, allocations: 177.6 kB / 469.7 MB, free: 2.418 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.4571, allocations: 8 kB / 469.7 MB, free: 2.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.4573, allocations: 338.8 kB / 470 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004923/0.4578, allocations: 217 kB / 470.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/0.4583, allocations: 280.6 kB / 470.5 MB, free: 1.566 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.4588, allocations: 190.1 kB / 470.7 MB, free: 1.383 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4588, allocations: 0 / 470.7 MB, free: 1.383 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001907/0.4607, allocations: 0.7545 MB / 471.5 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.4607, allocations: 7.938 kB / 471.5 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/0.4608, allocations: 4 kB / 471.5 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.4618, allocations: 454.4 kB / 471.9 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.4621, allocations: 75.89 kB / 472 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/0.4654, allocations: 3.388 MB / 475.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005591/0.466, allocations: 108 kB / 475.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.438e-05/0.4661, allocations: 23.98 kB / 475.5 MB, free: 12.27 MB / 362.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 () * Number of clocked 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.0002862/0.4664, allocations: 165.6 kB / 475.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.4665, allocations: 43.56 kB / 475.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.4684, allocations: 0.7615 MB / 476.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.4684, allocations: 4 kB / 476.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.4684, allocations: 7.953 kB / 476.5 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.4684, allocations: 7.984 kB / 476.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.4708, allocations: 1.205 MB / 477.7 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4709, allocations: 0 / 477.7 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.4712, allocations: 67.89 kB / 477.8 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009906/0.4722, allocations: 438.2 kB / 478.2 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.845e-05/0.4723, allocations: 15.98 kB / 478.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003547/0.4758, allocations: 3.373 MB / 481.6 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4758, allocations: 3.984 kB / 481.6 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/0.478, allocations: 0.9772 MB / 482.6 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002831/0.4783, allocations: 156.7 kB / 482.7 MB, free: 4.621 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.378e-05/0.4784, allocations: 16 kB / 482.7 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/0.4789, allocations: 95.91 kB / 482.8 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.4791, allocations: 104.2 kB / 482.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-05/0.4792, allocations: 31.97 kB / 483 MB, free: 4.379 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002117/0.4794, allocations: 165.9 kB / 483.1 MB, free: 4.215 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4794, allocations: 4 kB / 483.1 MB, free: 4.211 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006403/0.4801, allocations: 131.9 kB / 483.3 MB, free: 4.082 MB / 362.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) * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003513/0.4804, allocations: 152.6 kB / 483.4 MB, free: 3.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.4821, allocations: 0.8209 MB / 484.2 MB, free: 3.062 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4821, allocations: 0 / 484.2 MB, free: 3.062 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009937/0.4832, allocations: 0.5333 MB / 484.8 MB, free: 2.504 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.4836, allocations: 52.53 kB / 484.8 MB, free: 2.453 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.4858, allocations: 1.152 MB / 486 MB, free: 1.277 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.4863, allocations: 0.8074 MB / 486.8 MB, free: 456 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.4865, allocations: 23.3 kB / 486.8 MB, free: 436 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.538e-05/0.4865, allocations: 27.42 kB / 486.8 MB, free: 412 kB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4865, allocations: 0 / 486.8 MB, free: 412 kB / 362.7 MB Notification: Performance of Templates: time 0.01424/0.5008, allocations: 8.489 MB / 495.3 MB, free: 7.926 MB / 378.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