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.0008888/0.0008887, allocations: 86 kB / 16.65 MB, free: 6.535 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.001072/0.001072, allocations: 177.4 kB / 17.56 MB, free: 6.18 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.541/1.541, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004613/0.0004614, allocations: 8 kB / 301.4 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1383, allocations: 50.41 MB / 351.8 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002599/0.141, allocations: 1.805 MB / 353.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.1432, allocations: 1.025 MB / 354.7 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.909e-05/0.1433, allocations: 7.938 kB / 354.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.1435, allocations: 27.78 kB / 354.7 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.1436, allocations: 39.7 kB / 354.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003771/0.144, allocations: 115.8 kB / 354.8 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/0.1444, allocations: 335.1 kB / 355.2 MB, free: 128 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.1446, allocations: 103.1 kB / 355.3 MB, free: 20 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009955/0.1456, allocations: 0.9162 MB / 356.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.1458, allocations: 163.2 kB / 356.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.832e-05/0.1459, allocations: 12 kB / 356.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.944e-05/0.146, allocations: 8 kB / 356.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.1462, allocations: 147.4 kB / 356.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002751/0.1464, allocations: 275.8 kB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008382/0.1473, allocations: 0.9227 MB / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1473, allocations: 0 / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1473, allocations: 0 / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1473, allocations: 0 / 357.7 MB, free: 13.57 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.001196/0.1485, allocations: 0.9669 MB / 358.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1486, allocations: 12.03 kB / 358.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.1487, allocations: 80 kB / 358.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005288/0.1493, allocations: 431.9 kB / 359.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.153e-05/0.1493, allocations: 24.38 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/0.1494, allocations: 20.36 kB / 359.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.1501, allocations: 309.7 kB / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1501, allocations: 0 / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.1501, allocations: 12 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.1502, allocations: 3.984 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.1506, allocations: 211.9 kB / 359.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.1521, allocations: 0.8746 MB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005179/0.1526, allocations: 226.4 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.1529, allocations: 152.8 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.153, allocations: 0 / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007319/0.1537, allocations: 386 kB / 361.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1537, allocations: 4 kB / 361.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001486/0.1552, allocations: 0.7335 MB / 362.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.1553, allocations: 182.1 kB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.1568, allocations: 1.004 MB / 363.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.1569, allocations: 33.8 kB / 363.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.157, allocations: 161.7 kB / 363.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.256e-05/0.1571, allocations: 51.41 kB / 363.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.326e-05/0.1572, allocations: 41.69 kB / 363.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1574, allocations: 342.8 kB / 363.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.1577, allocations: 123.9 kB / 364 MB, free: 6.922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.158, allocations: 172.2 kB / 364.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006291/0.1586, allocations: 477.7 kB / 364.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1586, allocations: 4 kB / 364.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009698/0.1596, allocations: 0.5742 MB / 365.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.1597, allocations: 134.8 kB / 365.4 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1597, allocations: 4 kB / 365.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.1598, allocations: 3.938 kB / 365.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.1599, allocations: 15.98 kB / 365.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.1599, allocations: 0 / 365.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003076/0.1602, allocations: 35.89 kB / 365.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.1603, allocations: 116 kB / 365.5 MB, free: 5.27 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.000617/0.161, allocations: 0.5259 MB / 366.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.505e-05/0.1611, allocations: 83.06 kB / 366.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.1613, allocations: 130.4 kB / 366.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1613, allocations: 4 kB / 366.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1613, allocations: 4 kB / 366.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1613, allocations: 0 / 366.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007664/0.1621, allocations: 0.6258 MB / 366.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1621, allocations: 0 / 366.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.16e-05/0.1621, allocations: 8 kB / 366.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.1621, allocations: 0 / 366.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.1622, allocations: 27.98 kB / 367 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1622, allocations: 7.922 kB / 367 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1622, allocations: 0 / 367 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.1633, allocations: 0.7078 MB / 367.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007153/0.1641, allocations: 0.4919 MB / 368.2 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.1642, allocations: 27.98 kB / 368.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.1644, allocations: 27.89 kB / 368.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.1646, allocations: 44.08 kB / 368.3 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/0.1647, allocations: 123.9 kB / 368.4 MB, free: 2.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009891/0.1657, allocations: 0.7289 MB / 369.1 MB, free: 1.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1657, allocations: 0 / 369.1 MB, free: 1.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.1661, allocations: 95.94 kB / 369.2 MB, free: 1.469 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.0001949/0.1663, allocations: 134.6 kB / 369.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009622/0.1673, allocations: 0.6577 MB / 370 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.1673, allocations: 3.938 kB / 370 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000612/0.1679, allocations: 0.5327 MB / 370.5 MB, free: 32 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2093/0.3772, allocations: 168.9 kB / 370.7 MB, free: 25.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004459/0.3817, allocations: 1.555 MB / 372.2 MB, free: 24.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009612/0.3827, allocations: 0.9651 MB / 373.2 MB, free: 23.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006546/0.3834, allocations: 161.7 kB / 373.4 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.3836, allocations: 75.48 kB / 373.4 MB, free: 23.44 MB / 302.1 MB Notification: Performance of SimCode: time 1.954e-06/0.3836, allocations: 0 / 373.4 MB, free: 23.44 MB / 302.1 MB Notification: Performance of Templates: time 0.01575/0.3994, allocations: 6.835 MB / 380.3 MB, free: 22.28 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