Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.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.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 199.4 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.26/1.26, allocations: 226.5 MB / 245.4 MB, free: 6.414 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007619/0.0007617, allocations: 94.06 kB / 297.4 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002425/0.0002427, allocations: 11.98 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.229, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09793/0.327, allocations: 84.96 MB / 493.6 MB, free: 6.645 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.3272, allocations: 79.95 kB / 493.7 MB, free: 6.566 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2061/0.5333, allocations: 34.87 MB / 0.5162 GB, free: 94.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5333, allocations: 3.938 kB / 0.5162 GB, free: 94.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.5334, allocations: 10.62 kB / 0.5162 GB, free: 94.5 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0007709/0.5341, allocations: 0.9882 MB / 0.5172 GB, free: 93.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.5342, allocations: 9.906 kB / 0.5172 GB, free: 93.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.411e-05/0.5343, allocations: 83.16 kB / 0.5172 GB, free: 93.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.5347, allocations: 439.6 kB / 0.5177 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.5347, allocations: 15.12 kB / 0.5177 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.5347, allocations: 19.06 kB / 0.5177 GB, free: 93.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000473/0.5352, allocations: 302.2 kB / 0.518 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.5352, allocations: 4.031 kB / 0.518 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.5353, allocations: 11.91 kB / 0.518 GB, free: 93.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.5353, allocations: 7.969 kB / 0.518 GB, free: 93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.5357, allocations: 202.7 kB / 0.5182 GB, free: 92.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000938/0.5366, allocations: 0.881 MB / 0.5191 GB, free: 92.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003559/0.537, allocations: 223.4 kB / 0.5193 GB, free: 92.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.5372, allocations: 156 kB / 0.5194 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.5372, allocations: 3.156 kB / 0.5194 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003769/0.5376, allocations: 386.5 kB / 0.5198 GB, free: 91.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.893e-06/0.5376, allocations: 0 / 0.5198 GB, free: 91.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001043/0.5387, allocations: 0.7336 MB / 0.5205 GB, free: 91.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.5387, allocations: 178.2 kB / 0.5207 GB, free: 91.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009056/0.5397, allocations: 0.9961 MB / 0.5217 GB, free: 90.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.5397, allocations: 37.7 kB / 0.5217 GB, free: 90.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.491e-05/0.5398, allocations: 153.7 kB / 0.5218 GB, free: 89.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/0.5398, allocations: 50.31 kB / 0.5219 GB, free: 89.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.5399, allocations: 4 kB / 0.5219 GB, free: 89.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.421e-05/0.5399, allocations: 342.8 kB / 0.5222 GB, free: 89.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.5401, allocations: 123.8 kB / 0.5223 GB, free: 89.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.5404, allocations: 164.2 kB / 0.5225 GB, free: 89.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.5408, allocations: 478.5 kB / 0.5229 GB, free: 88.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.5408, allocations: 0 / 0.5229 GB, free: 88.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007124/0.5415, allocations: 0.5834 MB / 0.5235 GB, free: 88.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.435e-05/0.5416, allocations: 138.8 kB / 0.5236 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.5416, allocations: 0 / 0.5236 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.5416, allocations: 4.094 kB / 0.5237 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.418e-05/0.5417, allocations: 15.92 kB / 0.5237 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.5417, allocations: 4 kB / 0.5237 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.5419, allocations: 39.81 kB / 0.5237 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.749e-05/0.542, allocations: 115.9 kB / 0.5238 GB, free: 87.71 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: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004057/0.5424, allocations: 0.5359 MB / 0.5243 GB, free: 87.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.607e-05/0.5425, allocations: 75.06 kB / 0.5244 GB, free: 87.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.5426, allocations: 130.4 kB / 0.5245 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.5427, allocations: 4 kB / 0.5245 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5427, allocations: 3.984 kB / 0.5245 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.5427, allocations: 0 / 0.5245 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000482/0.5432, allocations: 0.6255 MB / 0.5252 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.5432, allocations: 0 / 0.5252 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.886e-05/0.5432, allocations: 19.83 kB / 0.5252 GB, free: 86.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.5432, allocations: 0 / 0.5252 GB, free: 86.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.262e-05/0.5433, allocations: 27.98 kB / 0.5252 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.5433, allocations: 0 / 0.5252 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5433, allocations: 0 / 0.5252 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008055/0.5441, allocations: 0.7056 MB / 0.5259 GB, free: 85.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004922/0.5446, allocations: 0.4957 MB / 0.5264 GB, free: 84.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.838e-05/0.5447, allocations: 23.84 kB / 0.5264 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.5449, allocations: 32.09 kB / 0.5264 GB, free: 84.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.545, allocations: 51.94 kB / 0.5265 GB, free: 84.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.352e-05/0.5451, allocations: 119.9 kB / 0.5266 GB, free: 84.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006777/0.5458, allocations: 0.725 MB / 0.5273 GB, free: 84.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5458, allocations: 4 kB / 0.5273 GB, free: 84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002992/0.5461, allocations: 88 kB / 0.5274 GB, free: 83.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001179/0.5462, allocations: 130.7 kB / 0.5275 GB, free: 83.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006558/0.5469, allocations: 0.6574 MB / 0.5282 GB, free: 83.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.5469, allocations: 0 / 0.5282 GB, free: 83.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.5473, allocations: 0.5284 MB / 0.5287 GB, free: 82.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006414/0.5479, allocations: 177.4 kB / 0.5288 GB, free: 82.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.5495, allocations: 1.576 MB / 0.5304 GB, free: 80.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.5499, allocations: 0.9677 MB / 0.5313 GB, free: 79.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.5502, allocations: 91.23 kB / 0.5314 GB, free: 79.65 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5502, allocations: 4 kB / 0.5314 GB, free: 79.64 MB / 378.7 MB Notification: Performance of Templates: time 0.005121/0.5553, allocations: 5.386 MB / 0.5367 GB, free: 74.24 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches