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.001719/0.001719, allocations: 177.8 kB / 8.698 MB, free: 380 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008734/0.0008733, allocations: 82.38 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.412e-05/1.414e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 47.58 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4565, allocations: 79.96 MB / 443 MB, free: 15.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.4568, allocations: 75.95 kB / 443.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01915/0.476, allocations: 6.67 MB / 449.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.476, allocations: 0 / 449.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.065e-05/0.4761, allocations: 8.75 kB / 449.8 MB, free: 10.01 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.001255/0.4773, allocations: 0.6588 MB / 450.4 MB, free: 9.324 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.4774, allocations: 8.031 kB / 450.5 MB, free: 9.316 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.722e-05/0.4775, allocations: 43.44 kB / 450.5 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.4778, allocations: 293.8 kB / 450.8 MB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.4779, allocations: 12 kB / 450.8 MB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.734e-05/0.478, allocations: 23.95 kB / 450.8 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005809/0.4785, allocations: 354 kB / 451.2 MB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005714/0.4791, allocations: 355.1 kB / 451.5 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.4792, allocations: 0 / 451.5 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.4792, allocations: 0 / 451.5 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.4792, allocations: 8 kB / 451.5 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.4815, allocations: 1.216 MB / 452.7 MB, free: 7.406 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/0.482, allocations: 327.3 kB / 453.1 MB, free: 7.191 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/0.4823, allocations: 199.9 kB / 453.2 MB, free: 7.074 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.331e-05/0.4824, allocations: 12.42 kB / 453.3 MB, free: 7.062 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.4824, allocations: 34.31 kB / 453.3 MB, free: 7.023 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 3.788e-06/0.4824, allocations: 3.984 kB / 453.3 MB, free: 7.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.003285/0.4857, allocations: 1.518 MB / 454.8 MB, free: 5.688 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.4858, allocations: 63.16 kB / 454.9 MB, free: 5.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.486, allocations: 188.5 kB / 455.1 MB, free: 5.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.486, allocations: 37.14 kB / 455.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.4862, allocations: 158.8 kB / 455.3 MB, free: 5.273 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.4863, allocations: 167.2 kB / 455.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.4863, allocations: 0 / 455.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4865, allocations: 337.9 kB / 455.7 MB, free: 4.805 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/0.4868, allocations: 178.2 kB / 455.9 MB, free: 4.703 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.4871, allocations: 247.4 kB / 456.2 MB, free: 4.527 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003582/0.4875, allocations: 154.5 kB / 456.3 MB, free: 4.422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4875, allocations: 0 / 456.3 MB, free: 4.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001441/0.4889, allocations: 0.6573 MB / 457 MB, free: 3.914 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.4889, allocations: 8 kB / 457 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.489, allocations: 0 / 457 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008814/0.4899, allocations: 442.3 kB / 457.4 MB, free: 3.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.4902, allocations: 75.77 kB / 457.5 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002818/0.493, allocations: 3.342 MB / 460.8 MB, free: 136 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005307/0.4935, allocations: 92.03 kB / 460.9 MB, free: 44 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.455e-05/0.4936, allocations: 25.67 kB / 460.9 MB, free: 24 kB / 330.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.0002365/0.4939, allocations: 120.9 kB / 461.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.4939, allocations: 35.53 kB / 461.1 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.4954, allocations: 0.6689 MB / 461.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.4954, allocations: 4 kB / 461.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4954, allocations: 0 / 461.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.4954, allocations: 7.984 kB / 461.8 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.4971, allocations: 1.081 MB / 462.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4971, allocations: 0 / 462.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.4974, allocations: 58.91 kB / 462.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008184/0.4983, allocations: 429.5 kB / 463.3 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.157e-05/0.4983, allocations: 11.97 kB / 463.3 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002513/0.5008, allocations: 3.31 MB / 466.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5008, allocations: 3.938 kB / 466.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.5022, allocations: 0.854 MB / 467.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.5024, allocations: 152.1 kB / 467.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.415e-05/0.5024, allocations: 17.78 kB / 467.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004815/0.5029, allocations: 91.91 kB / 467.8 MB, free: 9.824 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.5031, allocations: 105.4 kB / 467.9 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.247e-05/0.5032, allocations: 23.41 kB / 467.9 MB, free: 9.715 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001383/0.5033, allocations: 154.9 kB / 468 MB, free: 9.578 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5033, allocations: 0 / 468 MB, free: 9.578 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005501/0.5039, allocations: 112 kB / 468.2 MB, free: 9.469 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.0002652/0.5042, allocations: 138.9 kB / 468.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.5053, allocations: 0.7277 MB / 469 MB, free: 8.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5053, allocations: 4 kB / 469 MB, free: 8.727 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000653/0.506, allocations: 484 kB / 469.5 MB, free: 8.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.5064, allocations: 43.47 kB / 469.5 MB, free: 8.289 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.508, allocations: 0.7741 MB / 470.3 MB, free: 7.578 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.5085, allocations: 0.8075 MB / 471.1 MB, free: 6.738 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000135/0.5086, allocations: 27.28 kB / 471.1 MB, free: 6.707 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.175e-05/0.5087, allocations: 23.44 kB / 471.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5087, allocations: 0 / 471.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of Templates: time 0.01293/0.5217, allocations: 8.166 MB / 479.3 MB, free: 14.53 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