Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.664/1.664, allocations: 226.5 MB / 245.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009227/0.0009225, allocations: 95.88 kB / 297.5 MB, free: 6.836 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002573/0.0002573, allocations: 8 kB / 358.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2485, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.3627, allocations: 84.97 MB / 494.3 MB, free: 6.508 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.363, allocations: 75.95 kB / 494.4 MB, free: 6.434 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3332/0.6962, allocations: 34.87 MB / 0.5169 GB, free: 94.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.6963, allocations: 0 / 0.5169 GB, free: 94.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.6963, allocations: 10.09 kB / 0.5169 GB, free: 94.41 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.001306/0.6976, allocations: 0.9875 MB / 0.5178 GB, free: 93.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.6977, allocations: 6.812 kB / 0.5179 GB, free: 93.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.6979, allocations: 83.16 kB / 0.5179 GB, free: 93.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.6985, allocations: 433 kB / 0.5183 GB, free: 93.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.804e-05/0.6986, allocations: 20.11 kB / 0.5184 GB, free: 93.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.902e-05/0.6987, allocations: 23.47 kB / 0.5184 GB, free: 93.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008942/0.6996, allocations: 299.6 kB / 0.5187 GB, free: 92.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.6996, allocations: 4.125 kB / 0.5187 GB, free: 92.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.678e-05/0.6997, allocations: 15.84 kB / 0.5187 GB, free: 92.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.6997, allocations: 0 / 0.5187 GB, free: 92.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007653/0.7005, allocations: 206.7 kB / 0.5189 GB, free: 92.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.7024, allocations: 0.8788 MB / 0.5197 GB, free: 92.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007137/0.7031, allocations: 232.5 kB / 0.52 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004708/0.7036, allocations: 156.2 kB / 0.5201 GB, free: 91.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.7036, allocations: 0 / 0.5201 GB, free: 91.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007625/0.7044, allocations: 388.6 kB / 0.5205 GB, free: 91.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.306e-06/0.7044, allocations: 0 / 0.5205 GB, free: 91.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.002112/0.7066, allocations: 0.7322 MB / 0.5212 GB, free: 91.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/0.7067, allocations: 178.2 kB / 0.5214 GB, free: 90.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/0.7086, allocations: 1.004 MB / 0.5224 GB, free: 89.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.134e-05/0.7087, allocations: 33.7 kB / 0.5224 GB, free: 89.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.7088, allocations: 153.7 kB / 0.5225 GB, free: 89.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.63e-05/0.709, allocations: 55.17 kB / 0.5226 GB, free: 89.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-05/0.709, allocations: 4 kB / 0.5226 GB, free: 89.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.938e-05/0.7091, allocations: 338.8 kB / 0.5229 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004256/0.7095, allocations: 120 kB / 0.523 GB, free: 89.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004711/0.71, allocations: 172.2 kB / 0.5232 GB, free: 89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008457/0.7109, allocations: 477.5 kB / 0.5236 GB, free: 88.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.7109, allocations: 4 kB / 0.5236 GB, free: 88.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001547/0.7125, allocations: 0.5816 MB / 0.5242 GB, free: 87.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.7126, allocations: 134.8 kB / 0.5243 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.7127, allocations: 0 / 0.5243 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.7127, allocations: 4 kB / 0.5244 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.7128, allocations: 15.97 kB / 0.5244 GB, free: 87.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.7129, allocations: 7.984 kB / 0.5244 GB, free: 87.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.7134, allocations: 35.86 kB / 0.5244 GB, free: 87.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/0.7136, allocations: 119.9 kB / 0.5245 GB, free: 87.54 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.001098/0.7147, allocations: 0.5258 MB / 0.525 GB, free: 86.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.7149, allocations: 79.06 kB / 0.5251 GB, free: 86.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003833/0.7153, allocations: 130.4 kB / 0.5252 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.7153, allocations: 0 / 0.5252 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.7153, allocations: 0 / 0.5252 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.7154, allocations: 4 kB / 0.5252 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009684/0.7163, allocations: 0.6296 MB / 0.5259 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.7164, allocations: 4 kB / 0.5259 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-05/0.7164, allocations: 8 kB / 0.5259 GB, free: 86.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.7165, allocations: 0 / 0.5259 GB, free: 86.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-05/0.7165, allocations: 27.98 kB / 0.5259 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.7165, allocations: 0 / 0.5259 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.7166, allocations: 3.984 kB / 0.5259 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/0.7182, allocations: 0.7094 MB / 0.5266 GB, free: 85.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008782/0.7191, allocations: 0.4957 MB / 0.5271 GB, free: 84.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.7192, allocations: 23.98 kB / 0.5271 GB, free: 84.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.7196, allocations: 23.98 kB / 0.5271 GB, free: 84.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.7198, allocations: 52.12 kB / 0.5272 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.7199, allocations: 119.9 kB / 0.5273 GB, free: 84.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001213/0.7212, allocations: 0.7367 MB / 0.528 GB, free: 83.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7212, allocations: 0 / 0.528 GB, free: 83.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005738/0.7217, allocations: 84 kB / 0.5281 GB, free: 83.75 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.0001941/0.722, allocations: 134.6 kB / 0.5282 GB, free: 83.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.7232, allocations: 0.6497 MB / 0.5288 GB, free: 82.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7232, allocations: 3.938 kB / 0.5288 GB, free: 82.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.7238, allocations: 0.5288 MB / 0.5294 GB, free: 82.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009789/0.7248, allocations: 180.3 kB / 0.5295 GB, free: 82.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.7274, allocations: 1.5 MB / 0.531 GB, free: 80.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/0.7279, allocations: 0.96 MB / 0.5319 GB, free: 79.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003741/0.7283, allocations: 169.3 kB / 0.5321 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.7285, allocations: 71.3 kB / 0.5322 GB, free: 79.43 MB / 378.7 MB Notification: Performance of SimCode: time 6.72e-07/0.7285, allocations: 0 / 0.5322 GB, free: 79.43 MB / 378.7 MB Notification: Performance of Templates: time 0.008894/0.7374, allocations: 6.75 MB / 0.5388 GB, free: 72.73 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches