Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001305/0.001305, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001735/0.001735, allocations: 190.9 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 50.08 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1495, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004208/0.1538, allocations: 2.099 MB / 353.6 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002881/0.1567, allocations: 1.021 MB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.157, allocations: 0 / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.1572, allocations: 35.66 kB / 354.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.1575, allocations: 59.5 kB / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004914/0.158, allocations: 128.8 kB / 354.8 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000576/0.1585, allocations: 403.1 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000307/0.1589, allocations: 115.1 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.16, allocations: 0.9396 MB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.1602, allocations: 187.2 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.841e-05/0.1603, allocations: 36 kB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.54e-05/0.1604, allocations: 36 kB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.1606, allocations: 163.4 kB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003124/0.1609, allocations: 286.1 kB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.1619, allocations: 0.9732 MB / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.162, allocations: 0 / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.162, allocations: 4 kB / 358 MB, free: 13.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.162, allocations: 7.938 kB / 358 MB, free: 13.2 MB / 302.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.001594/0.1636, allocations: 1.118 MB / 359.1 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.1636, allocations: 11.89 kB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.1638, allocations: 80 kB / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.1645, allocations: 428 kB / 359.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/0.1645, allocations: 16.38 kB / 359.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.1646, allocations: 20.38 kB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006417/0.1652, allocations: 301.7 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1653, allocations: 3.984 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.385e-05/0.1653, allocations: 15.98 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1653, allocations: 4 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004445/0.1658, allocations: 212.4 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.1675, allocations: 0.8823 MB / 361 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/0.168, allocations: 218.4 kB / 361.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.1684, allocations: 160.8 kB / 361.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.1684, allocations: 0 / 361.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007114/0.1691, allocations: 381.9 kB / 361.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.225e-06/0.1691, allocations: 0 / 361.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001529/0.1707, allocations: 0.7372 MB / 362.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.1708, allocations: 178.2 kB / 362.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.1724, allocations: 1.004 MB / 363.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.929e-05/0.1725, allocations: 37.7 kB / 363.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.1727, allocations: 153.8 kB / 363.9 MB, free: 6.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.1727, allocations: 59.28 kB / 363.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.173, allocations: 169 kB / 364.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1732, allocations: 342.8 kB / 364.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.1734, allocations: 119.9 kB / 364.5 MB, free: 6.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.1738, allocations: 172.7 kB / 364.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/0.1744, allocations: 469.8 kB / 365.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.1744, allocations: 0 / 365.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001027/0.1754, allocations: 0.5897 MB / 365.8 MB, free: 4.957 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.1755, allocations: 130.8 kB / 365.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1755, allocations: 8.062 kB / 365.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.1756, allocations: 0 / 365.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.1757, allocations: 23.92 kB / 365.9 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1757, allocations: 4 kB / 365.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.176, allocations: 19.89 kB / 365.9 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.1761, allocations: 108.1 kB / 366.1 MB, free: 4.645 MB / 302.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.0008663/0.177, allocations: 0.5338 MB / 366.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.1771, allocations: 83.09 kB / 366.7 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.1774, allocations: 126.4 kB / 366.8 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1774, allocations: 0 / 366.8 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.1774, allocations: 7.984 kB / 366.8 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1775, allocations: 0 / 366.8 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008659/0.1783, allocations: 0.6296 MB / 367.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1783, allocations: 0 / 367.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.1784, allocations: 15.92 kB / 367.4 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1784, allocations: 4 kB / 367.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.922e-05/0.1785, allocations: 27.98 kB / 367.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.1785, allocations: 0 / 367.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1785, allocations: 0 / 367.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.1797, allocations: 0.6941 MB / 368.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000806/0.1805, allocations: 0.4918 MB / 368.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.1806, allocations: 20 kB / 368.7 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.1808, allocations: 19.98 kB / 368.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.181, allocations: 51.89 kB / 368.8 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000148/0.1812, allocations: 119.9 kB / 368.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001232/0.1824, allocations: 0.7289 MB / 369.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.944e-06/0.1825, allocations: 4 kB / 369.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005015/0.183, allocations: 95.78 kB / 369.7 MB, free: 0.8516 MB / 302.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.000211/0.1832, allocations: 146.7 kB / 369.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2101/0.3933, allocations: 0.6487 MB / 370.5 MB, free: 26.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.3934, allocations: 0.9062 kB / 370.5 MB, free: 26.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007118/0.3941, allocations: 0.5262 MB / 371 MB, free: 25.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009565/0.3951, allocations: 196 kB / 371.2 MB, free: 25.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.3975, allocations: 1.317 MB / 372.5 MB, free: 25.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/0.3981, allocations: 0.9656 MB / 373.5 MB, free: 24.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003555/0.3985, allocations: 163.6 kB / 373.6 MB, free: 24.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.3986, allocations: 74.98 kB / 373.7 MB, free: 24.5 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3986, allocations: 0 / 373.7 MB, free: 24.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01536/0.414, allocations: 7.729 MB / 381.4 MB, free: 22.91 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches