Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 199.6 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.5 MB / 245.3 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008403/0.0008404, allocations: 98.94 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.0002301, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2155, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09918/0.3148, allocations: 83.08 MB / 491.7 MB, free: 8.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.315, allocations: 71.97 kB / 491.8 MB, free: 8.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04523/0.3602, allocations: 17.28 MB / 0.4972 GB, free: 7.125 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3603, allocations: 0 / 0.4972 GB, free: 7.125 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.3603, allocations: 4 kB / 0.4972 GB, free: 7.121 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001136/0.3615, allocations: 0.6121 MB / 0.4978 GB, free: 6.457 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3615, allocations: 12.03 kB / 0.4978 GB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.3618, allocations: 44.55 kB / 0.4978 GB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.3623, allocations: 305.4 kB / 0.4981 GB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.3625, allocations: 92.52 kB / 0.4982 GB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.188e-05/0.3626, allocations: 40.16 kB / 0.4982 GB, free: 5.922 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007457/0.3633, allocations: 389.8 kB / 0.4986 GB, free: 5.527 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.3634, allocations: 7.938 kB / 0.4986 GB, free: 5.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.3634, allocations: 8 kB / 0.4986 GB, free: 5.512 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.3634, allocations: 12 kB / 0.4986 GB, free: 5.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000881/0.3643, allocations: 429.9 kB / 0.499 GB, free: 5.078 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.3662, allocations: 1.226 MB / 0.5002 GB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007051/0.3669, allocations: 354.9 kB / 0.5006 GB, free: 3.434 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/0.3673, allocations: 184.8 kB / 0.5008 GB, free: 3.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.3674, allocations: 8 kB / 0.5008 GB, free: 3.242 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.3674, allocations: 34.59 kB / 0.5008 GB, free: 3.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.444e-06/0.3674, allocations: 4 kB / 0.5008 GB, free: 3.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.004788/0.3722, allocations: 1.934 MB / 0.5027 GB, free: 1.148 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.3723, allocations: 88.86 kB / 0.5028 GB, free: 1.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.3727, allocations: 246.4 kB / 0.503 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.3727, allocations: 33.7 kB / 0.503 GB, free: 0.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.3728, allocations: 148.8 kB / 0.5032 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.373, allocations: 153.8 kB / 0.5033 GB, free: 456 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.373, allocations: 8 kB / 0.5033 GB, free: 448 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.3732, allocations: 334.8 kB / 0.5037 GB, free: 104 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1612/0.5344, allocations: 166.4 kB / 0.5038 GB, free: 97.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005713/0.535, allocations: 229 kB / 0.504 GB, free: 97.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007908/0.5358, allocations: 347.3 kB / 0.5044 GB, free: 97.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.5358, allocations: 1.344 kB / 0.5044 GB, free: 97.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001251/0.5371, allocations: 0.559 MB / 0.5049 GB, free: 97.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.5371, allocations: 6.031 kB / 0.5049 GB, free: 97.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.5371, allocations: 1.672 kB / 0.5049 GB, free: 97.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000814/0.5379, allocations: 258.8 kB / 0.5052 GB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002616/0.5382, allocations: 58.09 kB / 0.5052 GB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003382/0.5416, allocations: 2.667 MB / 0.5078 GB, free: 95.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.5419, allocations: 29.8 kB / 0.5079 GB, free: 95.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.627e-05/0.542, allocations: 25.59 kB / 0.5079 GB, free: 95.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001789/0.5422, allocations: 156.4 kB / 0.508 GB, free: 95.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.5423, allocations: 24.47 kB / 0.508 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.438e-05/0.5423, allocations: 44.05 kB / 0.5081 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.5424, allocations: 4.875 kB / 0.5081 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.5424, allocations: 1.156 kB / 0.5081 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.5424, allocations: 4.969 kB / 0.5081 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.5443, allocations: 1.13 MB / 0.5092 GB, free: 95.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5443, allocations: 3.438 kB / 0.5092 GB, free: 95.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.5445, allocations: 52.86 kB / 0.5093 GB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007739/0.5453, allocations: 244 kB / 0.5095 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.5454, allocations: 26.38 kB / 0.5095 GB, free: 95.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003299/0.5487, allocations: 2.611 MB / 0.5121 GB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5487, allocations: 0 / 0.5121 GB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.5501, allocations: 0.8233 MB / 0.5129 GB, free: 92.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.5502, allocations: 157.7 kB / 0.513 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.436e-05/0.5503, allocations: 7.781 kB / 0.513 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.5506, allocations: 39.89 kB / 0.5131 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.5507, allocations: 76.06 kB / 0.5131 GB, free: 92.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.5508, allocations: 14.5 kB / 0.5132 GB, free: 92.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000182/0.551, allocations: 170.1 kB / 0.5133 GB, free: 92.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.551, allocations: 0 / 0.5133 GB, free: 92.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006176/0.5516, allocations: 151.8 kB / 0.5135 GB, free: 92.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.0007969/0.5524, allocations: 397.1 kB / 0.5138 GB, free: 92.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.5535, allocations: 0.6214 MB / 0.5144 GB, free: 91.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5535, allocations: 4.062 kB / 0.5144 GB, free: 91.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005887/0.5541, allocations: 432.7 kB / 0.5149 GB, free: 91.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.5545, allocations: 33.38 kB / 0.5149 GB, free: 91.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.5561, allocations: 0.8672 MB / 0.5157 GB, free: 91.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.5564, allocations: 0.7817 MB / 0.5165 GB, free: 90.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.5565, allocations: 37.72 kB / 0.5165 GB, free: 90.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5565, allocations: 0 / 0.5165 GB, free: 90.48 MB / 378.7 MB Notification: Performance of Templates: time 0.007079/0.5636, allocations: 5.926 MB / 0.5223 GB, free: 88.33 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches