Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002193/0.002193, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.22/2.22, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 85 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.336e-05/2.334e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3254, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1292/0.4547, allocations: 79.74 MB / 442.1 MB, free: 6.586 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.455, allocations: 63.97 kB / 442.1 MB, free: 6.523 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03244/0.4875, allocations: 6.669 MB / 448.8 MB, free: 15.9 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4875, allocations: 4 kB / 448.8 MB, free: 15.89 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.32e-05/0.4876, allocations: 11.98 kB / 448.8 MB, free: 15.88 MB / 347.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.002045/0.4896, allocations: 0.6577 MB / 449.5 MB, free: 15.18 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.4897, allocations: 12.03 kB / 449.5 MB, free: 15.17 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.4899, allocations: 43.44 kB / 449.5 MB, free: 15.12 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006011/0.4905, allocations: 291.5 kB / 449.8 MB, free: 14.8 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/0.4905, allocations: 12 kB / 449.8 MB, free: 14.79 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.4907, allocations: 23.95 kB / 449.8 MB, free: 14.77 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00107/0.4918, allocations: 353.4 kB / 450.2 MB, free: 14.42 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009855/0.4928, allocations: 342.9 kB / 450.5 MB, free: 14.08 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/0.4928, allocations: 4 kB / 450.5 MB, free: 14.08 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.05e-05/0.4929, allocations: 0 / 450.5 MB, free: 14.08 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.4929, allocations: 12 kB / 450.5 MB, free: 14.07 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004211/0.4971, allocations: 1.217 MB / 451.8 MB, free: 12.79 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.4982, allocations: 331.8 kB / 452.1 MB, free: 12.45 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/0.4988, allocations: 206.1 kB / 452.3 MB, free: 12.25 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.334e-05/0.4989, allocations: 8.438 kB / 452.3 MB, free: 12.24 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.4989, allocations: 35 kB / 452.3 MB, free: 12.2 MB / 347.1 MB Notification: Performance of pre-optimization done (n=47): time 4.138e-06/0.4989, allocations: 0.9375 kB / 452.3 MB, free: 12.2 MB / 347.1 MB Notification: Performance of matching and sorting (n=51): time 0.005652/0.5046, allocations: 1.52 MB / 453.8 MB, free: 10.58 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.5047, allocations: 55.84 kB / 453.9 MB, free: 10.51 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.505, allocations: 192.4 kB / 454.1 MB, free: 10.31 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 8.939e-05/0.5051, allocations: 33.7 kB / 454.1 MB, free: 10.27 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.5053, allocations: 215.2 kB / 454.3 MB, free: 10.06 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000229/0.5055, allocations: 173.7 kB / 454.5 MB, free: 9.891 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.862e-05/0.5056, allocations: 0 / 454.5 MB, free: 9.891 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.5058, allocations: 334.8 kB / 454.8 MB, free: 9.555 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005255/0.5063, allocations: 177.1 kB / 455 MB, free: 9.379 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005781/0.5069, allocations: 239.3 kB / 455.2 MB, free: 9.129 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000641/0.5076, allocations: 162 kB / 455.4 MB, free: 8.969 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.5076, allocations: 4 kB / 455.4 MB, free: 8.965 MB / 347.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002654/0.5103, allocations: 0.6454 MB / 456 MB, free: 8.305 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.5103, allocations: 8.125 kB / 456.1 MB, free: 8.297 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.854e-05/0.5104, allocations: 4 kB / 456.1 MB, free: 8.293 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.512, allocations: 433.1 kB / 456.5 MB, free: 7.863 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.5126, allocations: 75.41 kB / 456.6 MB, free: 7.793 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004269/0.5169, allocations: 3.347 MB / 459.9 MB, free: 4.195 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.518, allocations: 96.09 kB / 460 MB, free: 4.102 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.5182, allocations: 20 kB / 460 MB, free: 4.082 MB / 347.1 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.0003079/0.5185, allocations: 117.8 kB / 460.1 MB, free: 3.961 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.5186, allocations: 37.59 kB / 460.2 MB, free: 3.926 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002491/0.5211, allocations: 0.6792 MB / 460.8 MB, free: 3.227 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.5212, allocations: 4 kB / 460.8 MB, free: 3.223 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5212, allocations: 4 kB / 460.9 MB, free: 3.219 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.5212, allocations: 3.984 kB / 460.9 MB, free: 3.215 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/0.5242, allocations: 1.069 MB / 461.9 MB, free: 2.086 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.5243, allocations: 4 kB / 461.9 MB, free: 2.082 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005666/0.5249, allocations: 59.91 kB / 462 MB, free: 2.023 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/0.5264, allocations: 418.2 kB / 462.4 MB, free: 1.605 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.5266, allocations: 15.97 kB / 462.4 MB, free: 1.59 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004159/0.5307, allocations: 3.307 MB / 465.7 MB, free: 14.03 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.5308, allocations: 0 / 465.7 MB, free: 14.03 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002526/0.5333, allocations: 0.8564 MB / 466.6 MB, free: 13.15 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.5337, allocations: 156.6 kB / 466.7 MB, free: 12.98 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.5339, allocations: 11.95 kB / 466.7 MB, free: 12.96 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009359/0.5348, allocations: 87.91 kB / 466.8 MB, free: 12.88 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/0.5352, allocations: 116.2 kB / 466.9 MB, free: 12.77 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.758e-05/0.5353, allocations: 23.97 kB / 467 MB, free: 12.74 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0002405/0.5356, allocations: 150 kB / 467.1 MB, free: 12.59 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5356, allocations: 3.938 kB / 467.1 MB, free: 12.59 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007722/0.5364, allocations: 108 kB / 467.2 MB, free: 12.48 MB / 363.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 (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.0003446/0.5367, allocations: 138.4 kB / 467.4 MB, free: 12.34 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.5387, allocations: 0.7391 MB / 468.1 MB, free: 11.57 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5387, allocations: 0 / 468.1 MB, free: 11.57 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.5398, allocations: 483.6 kB / 468.6 MB, free: 11.07 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006366/0.5405, allocations: 39.88 kB / 468.6 MB, free: 11.04 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.5432, allocations: 0.8024 MB / 469.4 MB, free: 10.22 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.5438, allocations: 0.8036 MB / 470.2 MB, free: 9.383 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.5439, allocations: 27.44 kB / 470.2 MB, free: 9.355 MB / 363.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5439, allocations: 0 / 470.2 MB, free: 9.355 MB / 363.1 MB Notification: Performance of Templates: time 0.01846/0.5624, allocations: 8.484 MB / 478.7 MB, free: 0.9062 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches