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.000979/0.0009789, allocations: 89.16 kB / 16.31 MB, free: 5.602 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.001282/0.001282, allocations: 180.9 kB / 17.21 MB, free: 5.539 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.577/1.577, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.0004292, allocations: 11.94 kB / 300.8 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1376, allocations: 50.42 MB / 351.2 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003063/0.1408, allocations: 1.74 MB / 353 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.1433, allocations: 0.9634 MB / 353.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002078/0.1435, allocations: 3.938 kB / 353.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.1437, allocations: 27.72 kB / 354 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.1439, allocations: 39.69 kB / 354 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.1444, allocations: 87.84 kB / 354.1 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005243/0.1449, allocations: 315.1 kB / 354.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.1452, allocations: 81.62 kB / 354.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001152/0.1464, allocations: 0.7876 MB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003571/0.1467, allocations: 179.5 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.268e-05/0.1468, allocations: 8 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.493e-05/0.1469, allocations: 12 kB / 355.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.1471, allocations: 155.4 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.1473, allocations: 141.3 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007791/0.1481, allocations: 0.7874 MB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.1481, allocations: 0 / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1481, allocations: 4 kB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.1481, allocations: 0 / 356.5 MB, free: 14.67 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.001666/0.1498, allocations: 0.9668 MB / 357.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.1498, allocations: 12.03 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002112/0.1501, allocations: 83.06 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005829/0.1507, allocations: 399.5 kB / 358 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.1507, allocations: 16 kB / 358 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.1508, allocations: 16 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006679/0.1515, allocations: 301.4 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1515, allocations: 0 / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.265e-05/0.1515, allocations: 11.95 kB / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1516, allocations: 7.984 kB / 358.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004507/0.152, allocations: 211.9 kB / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1535, allocations: 0.8748 MB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004582/0.154, allocations: 222.6 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002801/0.1543, allocations: 156.8 kB / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.1543, allocations: 0 / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006296/0.155, allocations: 393.9 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.155, allocations: 0 / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001371/0.1564, allocations: 0.7258 MB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.1565, allocations: 186.1 kB / 361.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.158, allocations: 1.004 MB / 362.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.1581, allocations: 33.7 kB / 362.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.1582, allocations: 149.8 kB / 362.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.927e-05/0.1583, allocations: 55.34 kB / 362.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.1583, allocations: 8.094 kB / 362.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1585, allocations: 338.8 kB / 362.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.1588, allocations: 127.9 kB / 362.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/0.1591, allocations: 168.2 kB / 362.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003147/0.1594, allocations: 222.7 kB / 363.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1594, allocations: 0 / 363.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009325/0.1604, allocations: 0.5857 MB / 363.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.1605, allocations: 137 kB / 363.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.1605, allocations: 12 kB / 363.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.1605, allocations: 0 / 363.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.627e-05/0.1606, allocations: 15.98 kB / 363.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.1606, allocations: 0 / 363.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003164/0.161, allocations: 35.97 kB / 363.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.1611, allocations: 107.9 kB / 364.1 MB, free: 6.746 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,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.0006449/0.1618, allocations: 0.5298 MB / 364.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.1619, allocations: 83.02 kB / 364.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002057/0.1621, allocations: 126.4 kB / 364.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1621, allocations: 4 kB / 364.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1621, allocations: 0 / 364.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1621, allocations: 3.984 kB / 364.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007446/0.1629, allocations: 0.618 MB / 365.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.1629, allocations: 3.953 kB / 365.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.012e-05/0.1629, allocations: 15.98 kB / 365.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.163, allocations: 4 kB / 365.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.216e-05/0.163, allocations: 24.11 kB / 365.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.163, allocations: 4 kB / 365.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.163, allocations: 0 / 365.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.1641, allocations: 0.7001 MB / 366.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006604/0.1647, allocations: 0.4995 MB / 366.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.1649, allocations: 24 kB / 366.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.1651, allocations: 31.97 kB / 366.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.1653, allocations: 51.94 kB / 366.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.1654, allocations: 115.9 kB / 366.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001027/0.1664, allocations: 0.7289 MB / 367.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.008e-06/0.1664, allocations: 0 / 367.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003918/0.1668, allocations: 95.78 kB / 367.7 MB, free: 2.945 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 (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.0001957/0.167, allocations: 146.7 kB / 367.8 MB, free: 2.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008844/0.1679, allocations: 0.6498 MB / 368.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1679, allocations: 0 / 368.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005322/0.1685, allocations: 0.5366 MB / 369 MB, free: 1.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007589/0.1693, allocations: 177 kB / 369.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2133/0.3826, allocations: 1.489 MB / 370.7 MB, free: 24.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006994/0.3833, allocations: 0.9635 MB / 371.7 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004874/0.3838, allocations: 162.2 kB / 371.8 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001654/0.384, allocations: 71.42 kB / 371.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of SimCode: time 1.563e-06/0.384, allocations: 0 / 371.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01368/0.3976, allocations: 6.69 MB / 378.6 MB, free: 23.04 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/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