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.001609/0.001609, allocations: 185.5 kB / 16.4 MB, free: 5.746 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.912/1.912, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001173/0.001173, allocations: 98.84 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004031, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3254, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1289/0.4543, allocations: 80.48 MB / 455 MB, free: 288 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.4546, allocations: 75.95 kB / 455.1 MB, free: 212 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03301/0.4877, allocations: 6.74 MB / 461.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4877, allocations: 0 / 461.8 MB, free: 9.453 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.4878, allocations: 8 kB / 461.8 MB, free: 9.445 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.002077/0.4899, allocations: 0.6862 MB / 462.5 MB, free: 8.707 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4899, allocations: 8.031 kB / 462.5 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.4901, allocations: 43.53 kB / 462.6 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005275/0.4906, allocations: 289.4 kB / 462.9 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.4907, allocations: 36.94 kB / 462.9 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.4908, allocations: 39.94 kB / 462.9 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.4922, allocations: 418.3 kB / 463.3 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.4922, allocations: 4 kB / 463.3 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.985e-05/0.4923, allocations: 15.94 kB / 463.4 MB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.4923, allocations: 8 kB / 463.4 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.494, allocations: 431.7 kB / 463.8 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004106/0.4981, allocations: 1.298 MB / 465.1 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.4995, allocations: 371 kB / 465.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.4996, allocations: 4.438 kB / 465.4 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.4996, allocations: 39 kB / 465.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 3.567e-06/0.4997, allocations: 0 / 465.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.009062/0.5087, allocations: 2.304 MB / 467.8 MB, free: 3.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.5088, allocations: 55.84 kB / 467.8 MB, free: 3.098 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.5091, allocations: 205.7 kB / 468 MB, free: 2.895 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.888e-05/0.5092, allocations: 41.7 kB / 468.1 MB, free: 2.848 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.5094, allocations: 219.2 kB / 468.3 MB, free: 2.629 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002459/0.5097, allocations: 173.6 kB / 468.5 MB, free: 2.457 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.497e-05/0.5097, allocations: 8 kB / 468.5 MB, free: 2.449 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.5099, allocations: 334.8 kB / 468.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008249/0.5107, allocations: 217 kB / 469 MB, free: 1.902 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008945/0.5116, allocations: 284.7 kB / 469.3 MB, free: 1.605 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007187/0.5124, allocations: 182.1 kB / 469.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5124, allocations: 0 / 469.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003072/0.5155, allocations: 0.7391 MB / 470.2 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.5155, allocations: 4 kB / 470.2 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/0.5156, allocations: 7.938 kB / 470.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/0.5172, allocations: 455.3 kB / 470.7 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005771/0.5178, allocations: 75.89 kB / 470.7 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004055/0.5219, allocations: 3.4 MB / 474.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.523, allocations: 104.2 kB / 474.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-05/0.5231, allocations: 23.98 kB / 474.3 MB, free: 12.32 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.000356/0.5235, allocations: 173.6 kB / 474.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.5236, allocations: 35.58 kB / 474.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002996/0.5266, allocations: 0.7576 MB / 475.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.5267, allocations: 8 kB / 475.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.5267, allocations: 3.953 kB / 475.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.5267, allocations: 3.984 kB / 475.2 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003524/0.5302, allocations: 1.213 MB / 476.5 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.5303, allocations: 7.984 kB / 476.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005579/0.5309, allocations: 59.91 kB / 476.5 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.5324, allocations: 442.1 kB / 477 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.428e-05/0.5325, allocations: 23.91 kB / 477 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003919/0.5364, allocations: 3.368 MB / 480.3 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5365, allocations: 0 / 480.3 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/0.5398, allocations: 0.9734 MB / 481.3 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.5401, allocations: 152.7 kB / 481.5 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.5403, allocations: 16 kB / 481.5 MB, free: 4.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000931/0.5412, allocations: 107.9 kB / 481.6 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003612/0.5416, allocations: 104.3 kB / 481.7 MB, free: 4.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.58e-05/0.5417, allocations: 27.95 kB / 481.7 MB, free: 4.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002612/0.542, allocations: 166 kB / 481.9 MB, free: 4.266 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.542, allocations: 0 / 481.9 MB, free: 4.266 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007102/0.5427, allocations: 131.9 kB / 482 MB, free: 4.137 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.0003224/0.543, allocations: 152.6 kB / 482.2 MB, free: 3.977 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.5456, allocations: 0.8288 MB / 483 MB, free: 3.109 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5456, allocations: 4 kB / 483 MB, free: 3.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.547, allocations: 0.5175 MB / 483.5 MB, free: 2.562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000632/0.5477, allocations: 48.53 kB / 483.6 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003284/0.551, allocations: 1.178 MB / 484.7 MB, free: 1.309 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.5515, allocations: 0.8152 MB / 485.6 MB, free: 480 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.5516, allocations: 27.42 kB / 485.6 MB, free: 456 kB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5517, allocations: 0 / 485.6 MB, free: 456 kB / 362.7 MB Notification: Performance of Templates: time 0.01709/0.5688, allocations: 8.512 MB / 494.1 MB, free: 7.938 MB / 378.7 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