Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.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.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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002646/0.002645, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.635/3.635, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001789/0.001789, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006446/0.0006448, allocations: 16 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1619, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004926/0.1669, allocations: 1.737 MB / 376.3 MB, free: 13.7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005363/0.1724, allocations: 1.007 MB / 377.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002374/0.1727, allocations: 3.938 kB / 377.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002458/0.1729, allocations: 23.84 kB / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002952/0.1733, allocations: 51.84 kB / 377.4 MB, free: 12.6 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.174, allocations: 83.78 kB / 377.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007071/0.1747, allocations: 219.6 kB / 377.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000367/0.1751, allocations: 81.61 kB / 377.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001797/0.177, allocations: 0.655 MB / 378.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005472/0.1776, allocations: 195.5 kB / 378.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.1778, allocations: 8 kB / 378.6 MB, free: 11.37 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.1779, allocations: 8 kB / 378.6 MB, free: 11.36 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003726/0.1783, allocations: 147.5 kB / 378.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003148/0.1787, allocations: 141.3 kB / 378.9 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.1805, allocations: 0.7834 MB / 379.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1806, allocations: 3.938 kB / 379.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.098e-06/0.1806, allocations: 0 / 379.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.1806, allocations: 0 / 379.7 MB, free: 10.29 MB / 282.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.002705/0.1833, allocations: 0.9707 MB / 380.6 MB, free: 9.238 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.349e-05/0.1835, allocations: 12.03 kB / 380.7 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004081/0.1839, allocations: 79.06 kB / 380.7 MB, free: 9.148 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.1851, allocations: 411.3 kB / 381.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.403e-05/0.1853, allocations: 16 kB / 381.1 MB, free: 8.691 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.1854, allocations: 23.98 kB / 381.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.1871, allocations: 297.2 kB / 381.5 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.1872, allocations: 0 / 381.5 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.1874, allocations: 8 kB / 381.5 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.1874, allocations: 4 kB / 381.5 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.1888, allocations: 203.9 kB / 381.7 MB, free: 8.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0037/0.1925, allocations: 0.8943 MB / 382.6 MB, free: 7.215 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.1941, allocations: 210.6 kB / 382.8 MB, free: 7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-05/0.1942, allocations: 7.938 kB / 382.8 MB, free: 6.992 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001535/0.1957, allocations: 389.8 kB / 383.2 MB, free: 6.574 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 6.052e-06/0.1958, allocations: 0 / 383.2 MB, free: 6.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.004183/0.2, allocations: 0.8958 MB / 384.1 MB, free: 5.609 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002412/0.2003, allocations: 178.2 kB / 384.2 MB, free: 5.398 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004083/0.2044, allocations: 1.004 MB / 385.2 MB, free: 4.383 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002275/0.2047, allocations: 37.7 kB / 385.3 MB, free: 4.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002797/0.205, allocations: 204.2 kB / 385.5 MB, free: 4.141 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.2053, allocations: 47.41 kB / 385.5 MB, free: 4.094 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.106e-05/0.2054, allocations: 8 kB / 385.5 MB, free: 4.086 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002349/0.2056, allocations: 326.8 kB / 385.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008573/0.2065, allocations: 123.9 kB / 386 MB, free: 3.637 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008977/0.2074, allocations: 160.2 kB / 386.1 MB, free: 3.465 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008981/0.2084, allocations: 222.7 kB / 386.3 MB, free: 3.223 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.2084, allocations: 0 / 386.3 MB, free: 3.223 MB / 282.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002722/0.2112, allocations: 0.5665 MB / 386.9 MB, free: 2.625 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002442/0.2115, allocations: 138.7 kB / 387 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.2115, allocations: 4.062 kB / 387 MB, free: 2.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.2116, allocations: 0 / 387 MB, free: 2.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002102/0.2118, allocations: 15.98 kB / 387.1 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.2118, allocations: 4 kB / 387.1 MB, free: 2.441 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009621/0.2128, allocations: 43.75 kB / 387.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003289/0.2132, allocations: 115.9 kB / 387.2 MB, free: 2.285 MB / 282.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.002018/0.2152, allocations: 0.5337 MB / 387.8 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003578/0.2156, allocations: 79.06 kB / 387.8 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007313/0.2164, allocations: 126.4 kB / 388 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.2164, allocations: 4 kB / 388 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.2165, allocations: 3.984 kB / 388 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2165, allocations: 0 / 388 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002151/0.2187, allocations: 0.6221 MB / 388.6 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-05/0.2187, allocations: 4 kB / 388.6 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.2189, allocations: 15.92 kB / 388.6 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/0.219, allocations: 4 kB / 388.6 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/0.2192, allocations: 23.98 kB / 388.6 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.2192, allocations: 0 / 388.6 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.2192, allocations: 4.047 kB / 388.6 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.2224, allocations: 0.7061 MB / 389.3 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3928/0.6153, allocations: 0.4897 MB / 389.8 MB, free: 20.88 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003287/0.6157, allocations: 23.42 kB / 389.9 MB, free: 20.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007146/0.6164, allocations: 29.36 kB / 389.9 MB, free: 20.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000428/0.6169, allocations: 57 kB / 389.9 MB, free: 20.88 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003675/0.6172, allocations: 115.8 kB / 390 MB, free: 20.88 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.003156/0.6204, allocations: 0.7266 MB / 390.8 MB, free: 20.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.334e-06/0.6205, allocations: 0 / 390.8 MB, free: 20.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001085/0.6216, allocations: 91.16 kB / 390.9 MB, free: 20.66 MB / 282.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.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,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.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,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.0003572/0.622, allocations: 133.2 kB / 391 MB, free: 20.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002392/0.6244, allocations: 0.6626 MB / 391.7 MB, free: 20.31 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/0.6245, allocations: 3.625 kB / 391.7 MB, free: 20.31 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.6259, allocations: 0.5302 MB / 392.2 MB, free: 19.9 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/0.628, allocations: 163.4 kB / 392.4 MB, free: 19.86 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006218/0.6343, allocations: 1.577 MB / 393.9 MB, free: 18.92 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001415/0.6358, allocations: 0.9786 MB / 394.9 MB, free: 18.14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005347/0.6364, allocations: 95.2 kB / 395 MB, free: 18.08 MB / 282.7 MB Notification: Performance of SimCode: time 2.234e-06/0.6364, allocations: 0 / 395 MB, free: 18.08 MB / 282.7 MB Notification: Performance of Templates: time 0.0224/0.6588, allocations: 5.311 MB / 400.3 MB, free: 17.16 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches