Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 114.4 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 193.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 51.92 kB / 280.2 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1348, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.005223/0.1401, allocations: 2.16 MB / 328.9 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003064/0.1432, allocations: 1.038 MB / 330 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.1435, allocations: 4 kB / 330 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.1438, allocations: 23.78 kB / 330 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.144, allocations: 51.64 kB / 330.1 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006174/0.1446, allocations: 103.9 kB / 330.2 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006768/0.1453, allocations: 411.1 kB / 330.6 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004018/0.1457, allocations: 111 kB / 330.7 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.1469, allocations: 0.9474 MB / 331.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.1472, allocations: 191.2 kB / 331.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.05e-05/0.1473, allocations: 32 kB / 331.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.002e-05/0.1474, allocations: 36 kB / 331.9 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002163/0.1476, allocations: 171.2 kB / 332 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003046/0.1479, allocations: 290.1 kB / 332.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.149, allocations: 0.958 MB / 333.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.149, allocations: 0 / 333.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.149, allocations: 4 kB / 333.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.149, allocations: 0 / 333.3 MB, free: 14.27 MB / 286.1 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.001945/0.151, allocations: 1.122 MB / 334.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.156e-05/0.1511, allocations: 15.89 kB / 334.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.1512, allocations: 80 kB / 334.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006397/0.1519, allocations: 428 kB / 334.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.12e-05/0.152, allocations: 12.38 kB / 334.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.42e-05/0.152, allocations: 24.38 kB / 335 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007817/0.1528, allocations: 309.5 kB / 335.3 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.1529, allocations: 4 kB / 335.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.092e-05/0.1529, allocations: 12 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1529, allocations: 4 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006546/0.1536, allocations: 203.9 kB / 335.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.1557, allocations: 0.8862 MB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007115/0.1564, allocations: 214.5 kB / 336.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005553/0.157, allocations: 164.8 kB / 336.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.1571, allocations: 0 / 336.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001405/0.1585, allocations: 389.8 kB / 337.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 4.678e-06/0.1585, allocations: 0 / 337.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.002523/0.1611, allocations: 0.7375 MB / 337.8 MB, free: 9.449 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000207/0.1613, allocations: 174.2 kB / 338 MB, free: 9.242 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002938/0.1643, allocations: 1.004 MB / 339 MB, free: 8.227 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.509e-05/0.1644, allocations: 33.7 kB / 339.1 MB, free: 8.188 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.1646, allocations: 157.8 kB / 339.2 MB, free: 8.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.1648, allocations: 59.23 kB / 339.3 MB, free: 7.973 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005772/0.1654, allocations: 169 kB / 339.4 MB, free: 7.801 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002623/0.1657, allocations: 338.8 kB / 339.8 MB, free: 7.461 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/0.1661, allocations: 124 kB / 339.9 MB, free: 7.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.1667, allocations: 160.2 kB / 340 MB, free: 7.168 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009314/0.1676, allocations: 473.8 kB / 340.5 MB, free: 6.641 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.1676, allocations: 4 kB / 340.5 MB, free: 6.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001628/0.1693, allocations: 0.5858 MB / 341.1 MB, free: 6.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.1695, allocations: 130.8 kB / 341.2 MB, free: 5.867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.1695, allocations: 4 kB / 341.2 MB, free: 5.863 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.015e-05/0.1695, allocations: 0 / 341.2 MB, free: 5.863 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.1697, allocations: 16.08 kB / 341.2 MB, free: 5.848 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.1698, allocations: 11.94 kB / 341.3 MB, free: 5.836 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006046/0.1704, allocations: 31.89 kB / 341.3 MB, free: 5.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002469/0.1706, allocations: 115.9 kB / 341.4 MB, free: 5.691 MB / 286.1 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,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001254/0.1719, allocations: 0.5298 MB / 341.9 MB, free: 5.125 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000214/0.1721, allocations: 83.06 kB / 342 MB, free: 5.043 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005038/0.1726, allocations: 134.4 kB / 342.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1727, allocations: 0 / 342.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.1727, allocations: 0 / 342.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.1727, allocations: 0 / 342.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.1745, allocations: 0.6296 MB / 342.8 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-06/0.1746, allocations: 0 / 342.8 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.1747, allocations: 8 kB / 342.8 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-05/0.1747, allocations: 7.984 kB / 342.8 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.1748, allocations: 23.98 kB / 342.8 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.708e-06/0.1749, allocations: 4 kB / 342.8 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1749, allocations: 4 kB / 342.8 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.1771, allocations: 0.7022 MB / 343.5 MB, free: 3.426 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/0.1785, allocations: 0.492 MB / 344 MB, free: 2.914 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/0.1787, allocations: 24 kB / 344 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.1792, allocations: 23.98 kB / 344.1 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.1795, allocations: 51.98 kB / 344.1 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002408/0.1798, allocations: 119.9 kB / 344.2 MB, free: 2.699 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001883/0.1817, allocations: 0.7328 MB / 345 MB, free: 1.969 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.054e-06/0.1817, allocations: 0 / 345 MB, free: 1.969 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006762/0.1824, allocations: 95.78 kB / 345 MB, free: 1.875 MB / 286.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003728/0.1828, allocations: 134.8 kB / 345.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.1845, allocations: 0.6692 MB / 345.8 MB, free: 1.016 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.1845, allocations: 0 / 345.8 MB, free: 1.016 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008863/0.1854, allocations: 0.521 MB / 346.4 MB, free: 456 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.1867, allocations: 192.4 kB / 346.6 MB, free: 268 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.1906, allocations: 1.555 MB / 348.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001138/0.1917, allocations: 0.9714 MB / 349.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007083/0.1925, allocations: 165.1 kB / 349.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.1928, allocations: 71.3 kB / 349.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of SimCode: time 1.984e-06/0.1928, allocations: 0 / 349.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of Templates: time 0.023/0.2158, allocations: 7.636 MB / 357 MB, free: 5.777 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches