Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002421/0.002421, allocations: 179 kB / 8.364 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.963/1.963, 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.001088/0.001088, allocations: 84.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.076e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3434, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.4742, allocations: 80.15 MB / 442.5 MB, free: 6.172 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.4745, allocations: 70.69 kB / 442.5 MB, free: 6.105 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05002/0.5246, allocations: 10.12 MB / 452.7 MB, free: 12.02 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5246, allocations: 0 / 452.7 MB, free: 12.02 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.678e-05/0.5247, allocations: 4 kB / 452.7 MB, free: 12.01 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001595/0.5263, allocations: 0.5903 MB / 453.3 MB, free: 11.38 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.5263, allocations: 8.031 kB / 453.3 MB, free: 11.37 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004929/0.5269, allocations: 56.64 kB / 453.3 MB, free: 11.32 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000614/0.5275, allocations: 304.7 kB / 453.6 MB, free: 10.98 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.5277, allocations: 80.17 kB / 453.7 MB, free: 10.89 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.5278, allocations: 20 kB / 453.7 MB, free: 10.87 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001134/0.529, allocations: 401.3 kB / 454.1 MB, free: 10.48 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000899/0.5299, allocations: 337.3 kB / 454.4 MB, free: 10.14 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.5299, allocations: 3.984 kB / 454.4 MB, free: 10.13 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.618e-05/0.53, allocations: 4 kB / 454.4 MB, free: 10.13 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.53, allocations: 8 kB / 454.4 MB, free: 10.12 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.5323, allocations: 0.8289 MB / 455.3 MB, free: 9.242 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009481/0.5333, allocations: 331.8 kB / 455.6 MB, free: 8.91 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.5338, allocations: 193 kB / 455.8 MB, free: 8.723 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.5338, allocations: 4.438 kB / 455.8 MB, free: 8.719 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.5339, allocations: 43 kB / 455.8 MB, free: 8.668 MB / 347.1 MB Notification: Performance of pre-optimization done (n=49): time 3.026e-06/0.5339, allocations: 0 / 455.8 MB, free: 8.668 MB / 347.1 MB Notification: Performance of matching and sorting (n=55): time 0.004609/0.5385, allocations: 1.425 MB / 457.3 MB, free: 7.152 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.5386, allocations: 85.67 kB / 457.3 MB, free: 7.051 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/0.539, allocations: 179.7 kB / 457.5 MB, free: 6.867 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-05/0.5391, allocations: 29.7 kB / 457.5 MB, free: 6.832 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.5392, allocations: 207.3 kB / 457.8 MB, free: 6.629 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.5395, allocations: 173.4 kB / 457.9 MB, free: 6.457 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/0.5395, allocations: 3.938 kB / 457.9 MB, free: 6.453 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.5397, allocations: 330.8 kB / 458.2 MB, free: 6.121 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004482/0.5402, allocations: 153.1 kB / 458.4 MB, free: 5.969 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/0.5407, allocations: 207.6 kB / 458.6 MB, free: 5.758 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005744/0.5412, allocations: 154.1 kB / 458.8 MB, free: 5.605 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5413, allocations: 0 / 458.8 MB, free: 5.605 MB / 347.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001508/0.5428, allocations: 0.5081 MB / 459.3 MB, free: 5.094 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.5428, allocations: 4 kB / 459.3 MB, free: 5.09 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.5429, allocations: 0 / 459.3 MB, free: 5.09 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.544, allocations: 239.8 kB / 459.5 MB, free: 4.855 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006375/0.5447, allocations: 79.83 kB / 459.6 MB, free: 4.777 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005688/0.5504, allocations: 2.585 MB / 462.2 MB, free: 2.066 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006003/0.5511, allocations: 32.06 kB / 462.2 MB, free: 2.035 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.23e-05/0.5512, allocations: 17.02 kB / 462.2 MB, free: 2.02 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.5514, allocations: 108.9 kB / 462.3 MB, free: 1.906 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.5516, allocations: 35.58 kB / 462.3 MB, free: 1.871 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.5518, allocations: 39.39 kB / 462.4 MB, free: 1.836 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.5518, allocations: 8 kB / 462.4 MB, free: 1.828 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.5518, allocations: 0 / 462.4 MB, free: 1.828 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.5518, allocations: 7.984 kB / 462.4 MB, free: 1.82 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003129/0.555, allocations: 1.093 MB / 463.5 MB, free: 0.6797 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.555, allocations: 0.9375 kB / 463.5 MB, free: 0.6797 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007142/0.5558, allocations: 79.91 kB / 463.6 MB, free: 0.6016 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.5569, allocations: 220.7 kB / 463.8 MB, free: 392 kB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.5571, allocations: 3.984 kB / 463.8 MB, free: 388 kB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005533/0.5626, allocations: 2.503 MB / 466.3 MB, free: 13.76 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.5627, allocations: 0 / 466.3 MB, free: 13.76 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.5649, allocations: 0.8301 MB / 467.1 MB, free: 12.91 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003693/0.5654, allocations: 152.7 kB / 467.3 MB, free: 12.74 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.206e-05/0.5655, allocations: 4 kB / 467.3 MB, free: 12.73 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005804/0.5661, allocations: 32.03 kB / 467.3 MB, free: 12.7 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.5664, allocations: 74.27 kB / 467.4 MB, free: 12.63 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.907e-05/0.5664, allocations: 19.98 kB / 467.4 MB, free: 12.61 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0002203/0.5667, allocations: 147.3 kB / 467.5 MB, free: 12.47 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5667, allocations: 0 / 467.5 MB, free: 12.47 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0009929/0.5677, allocations: 136 kB / 467.7 MB, free: 12.34 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003655/0.5681, allocations: 143.6 kB / 467.8 MB, free: 12.19 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.5698, allocations: 0.5918 MB / 468.4 MB, free: 11.58 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.5698, allocations: 3.938 kB / 468.4 MB, free: 11.58 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.5709, allocations: 421.7 kB / 468.8 MB, free: 11.15 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.5715, allocations: 20.67 kB / 468.8 MB, free: 11.14 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.5734, allocations: 0.6137 MB / 469.5 MB, free: 10.49 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000516/0.574, allocations: 0.8036 MB / 470.3 MB, free: 9.664 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.5743, allocations: 39.41 kB / 470.3 MB, free: 9.625 MB / 363.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5743, allocations: 0 / 470.3 MB, free: 9.625 MB / 363.1 MB Notification: Performance of Templates: time 0.01512/0.5895, allocations: 5.673 MB / 476 MB, free: 3.996 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches