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.0009517/0.0009518, allocations: 197.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 227.2 MB / 245 MB, free: 5.758 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008014/0.0008014, allocations: 109.7 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002052/0.0002052, allocations: 4 kB / 357.9 MB, free: 9.324 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.184, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09503/0.2791, allocations: 85.03 MB / 494.4 MB, free: 5.574 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.2794, allocations: 75.95 kB / 494.5 MB, free: 5.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2097/0.4891, allocations: 34.88 MB / 0.517 GB, free: 93.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4891, allocations: 0 / 0.517 GB, free: 93.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.397e-05/0.4892, allocations: 14.75 kB / 0.517 GB, free: 93.43 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.0009623/0.4901, allocations: 0.9882 MB / 0.5179 GB, free: 92.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.4902, allocations: 7.094 kB / 0.518 GB, free: 92.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.4903, allocations: 84.45 kB / 0.518 GB, free: 92.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.4908, allocations: 400 kB / 0.5184 GB, free: 92.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.4908, allocations: 19.88 kB / 0.5184 GB, free: 92.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.4909, allocations: 19.81 kB / 0.5185 GB, free: 92.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.4914, allocations: 303.9 kB / 0.5187 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.4914, allocations: 0 / 0.5187 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.945e-05/0.4914, allocations: 7.938 kB / 0.5188 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.4915, allocations: 3.969 kB / 0.5188 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003539/0.4918, allocations: 209 kB / 0.519 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.493, allocations: 0.8905 MB / 0.5198 GB, free: 91.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003551/0.4933, allocations: 222.3 kB / 0.52 GB, free: 91.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.4933, allocations: 3.938 kB / 0.52 GB, free: 91.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003836/0.4937, allocations: 375.6 kB / 0.5204 GB, free: 90.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.455e-06/0.4938, allocations: 0 / 0.5204 GB, free: 90.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001078/0.4948, allocations: 0.8945 MB / 0.5213 GB, free: 89.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.4949, allocations: 174.2 kB / 0.5214 GB, free: 89.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009156/0.4958, allocations: 0.8822 MB / 0.5223 GB, free: 88.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.4959, allocations: 41.64 kB / 0.5223 GB, free: 88.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.4959, allocations: 153.7 kB / 0.5225 GB, free: 88.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.496, allocations: 51.02 kB / 0.5225 GB, free: 88.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/0.496, allocations: 8 kB / 0.5225 GB, free: 88.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.441e-05/0.4961, allocations: 334.8 kB / 0.5229 GB, free: 88.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.4963, allocations: 123.8 kB / 0.523 GB, free: 87.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.4965, allocations: 168.2 kB / 0.5231 GB, free: 87.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.4968, allocations: 227.9 kB / 0.5234 GB, free: 87.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4968, allocations: 0 / 0.5234 GB, free: 87.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007062/0.4975, allocations: 0.5691 MB / 0.5239 GB, free: 86.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.192e-05/0.4976, allocations: 141.3 kB / 0.524 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4976, allocations: 0 / 0.524 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.4976, allocations: 4 kB / 0.5241 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.8e-05/0.4977, allocations: 8 kB / 0.5241 GB, free: 86.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.4977, allocations: 12.02 kB / 0.5241 GB, free: 86.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.498, allocations: 39.66 kB / 0.5241 GB, free: 86.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.956e-05/0.4981, allocations: 119.9 kB / 0.5242 GB, free: 86.58 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.0004888/0.4986, allocations: 0.5259 MB / 0.5247 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.4986, allocations: 83.06 kB / 0.5248 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.4988, allocations: 134.4 kB / 0.5249 GB, free: 85.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4988, allocations: 0 / 0.5249 GB, free: 85.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4988, allocations: 0 / 0.5249 GB, free: 85.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4988, allocations: 7.797 kB / 0.525 GB, free: 85.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/0.4994, allocations: 0.6212 MB / 0.5256 GB, free: 85.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4994, allocations: 0 / 0.5256 GB, free: 85.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-05/0.4994, allocations: 8 kB / 0.5256 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.4994, allocations: 4 kB / 0.5256 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.139e-05/0.4995, allocations: 23.98 kB / 0.5256 GB, free: 85.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4995, allocations: 8.125 kB / 0.5256 GB, free: 85.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4995, allocations: 4 kB / 0.5256 GB, free: 85.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008327/0.5003, allocations: 0.6879 MB / 0.5263 GB, free: 84.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005573/0.5009, allocations: 0.4919 MB / 0.5268 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.229e-05/0.501, allocations: 24 kB / 0.5268 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.5012, allocations: 23.98 kB / 0.5268 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.5013, allocations: 51.92 kB / 0.5269 GB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.641e-05/0.5014, allocations: 123.9 kB / 0.527 GB, free: 83.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007003/0.5021, allocations: 0.7328 MB / 0.5277 GB, free: 82.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5021, allocations: 0 / 0.5277 GB, free: 82.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003124/0.5024, allocations: 84 kB / 0.5278 GB, free: 82.82 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.0001343/0.5026, allocations: 134.7 kB / 0.5279 GB, free: 82.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006484/0.5032, allocations: 0.6613 MB / 0.5285 GB, free: 81.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5033, allocations: 0 / 0.5285 GB, free: 81.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003662/0.5036, allocations: 0.5249 MB / 0.5291 GB, free: 81.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005905/0.5042, allocations: 168.8 kB / 0.5292 GB, free: 81.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.5059, allocations: 1.499 MB / 0.5307 GB, free: 79.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.5063, allocations: 0.9872 MB / 0.5316 GB, free: 78.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000301/0.5066, allocations: 157.2 kB / 0.5318 GB, free: 78.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.5067, allocations: 71.47 kB / 0.5319 GB, free: 78.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5067, allocations: 0 / 0.5319 GB, free: 78.48 MB / 378.7 MB Notification: Performance of Templates: time 0.007759/0.5145, allocations: 6.694 MB / 0.5384 GB, free: 71.83 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/jenkins/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