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.001071/0.001071, allocations: 93.89 kB / 16.95 MB, free: 6.113 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.001261/0.001261, allocations: 178.4 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.914/1.914, allocations: 205.4 MB / 224 MB, free: 13.07 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.0008712/0.0008713, allocations: 16 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1595, allocations: 47.58 MB / 328.4 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002312/0.1619, allocations: 1.741 MB / 330.1 MB, free: 2.316 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.164, allocations: 1.007 MB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.421e-05/0.1641, allocations: 7.938 kB / 331.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.1642, allocations: 23.78 kB / 331.1 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.045e-05/0.1643, allocations: 51.56 kB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000321/0.1647, allocations: 71.91 kB / 331.3 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003357/0.165, allocations: 319.1 kB / 331.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.1652, allocations: 81.61 kB / 331.6 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008728/0.1661, allocations: 0.7876 MB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.1663, allocations: 179.5 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/0.1664, allocations: 12 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.519e-05/0.1664, allocations: 8 kB / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.1666, allocations: 155.5 kB / 332.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1667, allocations: 137.3 kB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006758/0.1674, allocations: 0.7913 MB / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1674, allocations: 0 / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1674, allocations: 0 / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1674, allocations: 0 / 333.7 MB, free: 14.69 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.0009943/0.1684, allocations: 0.9746 MB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1685, allocations: 12.03 kB / 334.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.1686, allocations: 79.06 kB / 334.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.169, allocations: 403.4 kB / 335.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.1691, allocations: 16 kB / 335.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.641e-05/0.1691, allocations: 16 kB / 335.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005797/0.1697, allocations: 305.1 kB / 335.5 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.1697, allocations: 0 / 335.5 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.189e-05/0.1698, allocations: 8 kB / 335.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1698, allocations: 4 kB / 335.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.1702, allocations: 215.9 kB / 335.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.1715, allocations: 0.8903 MB / 336.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.172, allocations: 214.5 kB / 336.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.1723, allocations: 152.8 kB / 337 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.1723, allocations: 7.984 kB / 337 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005929/0.1729, allocations: 389.9 kB / 337.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1729, allocations: 4 kB / 337.4 MB, free: 10.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001345/0.1743, allocations: 0.7334 MB / 338.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001917/0.1745, allocations: 182.3 kB / 338.3 MB, free: 9.832 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00152/0.176, allocations: 0.9961 MB / 339.3 MB, free: 8.824 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.1761, allocations: 37.7 kB / 339.3 MB, free: 8.781 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.1762, allocations: 149.8 kB / 339.4 MB, free: 8.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.533e-05/0.1763, allocations: 55.34 kB / 339.5 MB, free: 8.578 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.1763, allocations: 8 kB / 339.5 MB, free: 8.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.1766, allocations: 342.8 kB / 339.8 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.1769, allocations: 119.9 kB / 340 MB, free: 8.109 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.1772, allocations: 164.2 kB / 340.1 MB, free: 7.934 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.1775, allocations: 222.7 kB / 340.3 MB, free: 7.691 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1776, allocations: 0 / 340.3 MB, free: 7.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009822/0.1785, allocations: 0.5858 MB / 340.9 MB, free: 7.074 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.1787, allocations: 130.8 kB / 341.1 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.1787, allocations: 4 kB / 341.1 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.1787, allocations: 0 / 341.1 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.585e-05/0.1788, allocations: 15.98 kB / 341.1 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1788, allocations: 3.984 kB / 341.1 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003064/0.1791, allocations: 47.77 kB / 341.1 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.1793, allocations: 111.9 kB / 341.2 MB, free: 6.742 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,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.0007054/0.18, allocations: 0.526 MB / 341.8 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1801, allocations: 83.05 kB / 341.8 MB, free: 6.098 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002196/0.1803, allocations: 126.4 kB / 342 MB, free: 5.965 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.892e-06/0.1803, allocations: 4 kB / 342 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.1804, allocations: 0 / 342 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1804, allocations: 0 / 342 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008262/0.1812, allocations: 0.6297 MB / 342.6 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1812, allocations: 0 / 342.6 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.567e-05/0.1813, allocations: 16.11 kB / 342.6 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.1813, allocations: 0 / 342.6 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.331e-05/0.1813, allocations: 31.86 kB / 342.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1813, allocations: 0 / 342.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1814, allocations: 0 / 342.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.1825, allocations: 0.7062 MB / 343.3 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006577/0.1831, allocations: 0.4919 MB / 343.8 MB, free: 3.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.959e-05/0.1832, allocations: 24 kB / 343.9 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.1834, allocations: 23.89 kB / 343.9 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/0.1837, allocations: 67.84 kB / 344 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.1838, allocations: 115.9 kB / 344.1 MB, free: 3.746 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001112/0.1849, allocations: 0.7289 MB / 344.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1849, allocations: 192 / 344.8 MB, free: 3.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003557/0.1853, allocations: 91.84 kB / 344.9 MB, free: 2.93 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 (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.000212/0.1855, allocations: 154.4 kB / 345 MB, free: 2.77 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009541/0.1865, allocations: 0.6498 MB / 345.7 MB, free: 2.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1865, allocations: 0 / 345.7 MB, free: 2.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005796/0.1871, allocations: 0.5289 MB / 346.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007294/0.1878, allocations: 167.2 kB / 346.4 MB, free: 1.332 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.19, allocations: 1.496 MB / 347.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006505/0.1907, allocations: 0.9639 MB / 348.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000372/0.1911, allocations: 165.1 kB / 349 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.1912, allocations: 67.3 kB / 349.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1912, allocations: 0 / 349.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01156/0.2028, allocations: 6.701 MB / 355.8 MB, free: 7.855 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