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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 221.5 MB / 230.3 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 98.19 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.619e-05/1.621e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1144, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3512/0.4657, allocations: 80.64 MB / 468.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.466, allocations: 67.97 kB / 468.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01954/0.4855, allocations: 6.763 MB / 474.9 MB, free: 7.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.4856, allocations: 4 kB / 474.9 MB, free: 7.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.4856, allocations: 8 kB / 474.9 MB, free: 7.344 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.001286/0.4869, allocations: 0.6564 MB / 475.6 MB, free: 6.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.487, allocations: 8.031 kB / 475.6 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.4871, allocations: 47.42 kB / 475.7 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/0.4875, allocations: 289.5 kB / 475.9 MB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.234e-05/0.4876, allocations: 15.94 kB / 476 MB, free: 6.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.071e-05/0.4876, allocations: 16 kB / 476 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006232/0.4883, allocations: 357.4 kB / 476.3 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.4889, allocations: 346 kB / 476.7 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.4889, allocations: 0 / 476.7 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.28e-05/0.489, allocations: 7.953 kB / 476.7 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.489, allocations: 11.98 kB / 476.7 MB, free: 5.523 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.4916, allocations: 1.221 MB / 477.9 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006115/0.4922, allocations: 325.8 kB / 478.2 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.4925, allocations: 198.1 kB / 478.4 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.291e-05/0.4926, allocations: 20.45 kB / 478.4 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.4926, allocations: 31 kB / 478.5 MB, free: 3.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 2.154e-06/0.4926, allocations: 0 / 478.5 MB, free: 3.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.003441/0.4961, allocations: 1.516 MB / 480 MB, free: 2.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.4961, allocations: 63.78 kB / 480 MB, free: 1.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.4963, allocations: 185.1 kB / 480.2 MB, free: 1.785 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.526e-05/0.4964, allocations: 37.69 kB / 480.3 MB, free: 1.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.4965, allocations: 160.7 kB / 480.4 MB, free: 1.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.4967, allocations: 161.7 kB / 480.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.4967, allocations: 0 / 480.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4969, allocations: 354.7 kB / 480.9 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.4971, allocations: 181 kB / 481.1 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000336/0.4975, allocations: 242.2 kB / 481.3 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.4979, allocations: 150.1 kB / 481.5 MB, free: 492 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.4979, allocations: 4 kB / 481.5 MB, free: 488 kB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001538/0.4994, allocations: 0.6571 MB / 482.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.4995, allocations: 8 kB / 482.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.4995, allocations: 8.109 kB / 482.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008902/0.5004, allocations: 435.6 kB / 482.6 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.5007, allocations: 67.89 kB / 482.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.5035, allocations: 3.353 MB / 486 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005584/0.5041, allocations: 100.1 kB / 486.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.46e-05/0.5041, allocations: 23.94 kB / 486.1 MB, free: 11.56 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.000271/0.5044, allocations: 125.5 kB / 486.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.912e-05/0.5045, allocations: 35.53 kB / 486.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00153/0.5061, allocations: 0.6715 MB / 486.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.5061, allocations: 4 kB / 486.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.5061, allocations: 8 kB / 487 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.5061, allocations: 4 kB / 487 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.508, allocations: 1.065 MB / 488 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.508, allocations: 0 / 488 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.5083, allocations: 63.91 kB / 488.1 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008034/0.5091, allocations: 427.7 kB / 488.5 MB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.962e-05/0.5092, allocations: 7.984 kB / 488.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002858/0.512, allocations: 3.307 MB / 491.8 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5121, allocations: 0 / 491.8 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.5135, allocations: 0.8602 MB / 492.7 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.5138, allocations: 156.7 kB / 492.8 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.199e-05/0.5138, allocations: 8 kB / 492.8 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004875/0.5143, allocations: 87.91 kB / 492.9 MB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.5145, allocations: 112.2 kB / 493 MB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.163e-05/0.5146, allocations: 27.94 kB / 493.1 MB, free: 4.223 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001605/0.5148, allocations: 154 kB / 493.2 MB, free: 4.066 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5148, allocations: 0 / 493.2 MB, free: 4.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005481/0.5153, allocations: 108 kB / 493.3 MB, free: 3.961 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) * 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.0002652/0.5156, allocations: 143.1 kB / 493.5 MB, free: 3.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.5167, allocations: 0.7313 MB / 494.2 MB, free: 3.051 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5167, allocations: 0 / 494.2 MB, free: 3.051 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006665/0.5174, allocations: 491.4 kB / 494.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003981/0.5178, allocations: 51.36 kB / 494.7 MB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.5194, allocations: 0.7548 MB / 495.5 MB, free: 1.723 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.5198, allocations: 0.8075 MB / 496.3 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.5199, allocations: 35.27 kB / 496.3 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.1e-05/0.52, allocations: 31.42 kB / 496.3 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.52, allocations: 0 / 496.3 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of Templates: time 0.01268/0.5327, allocations: 8.157 MB / 0.4927 GB, free: 8.707 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches