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.001396/0.001397, allocations: 107.4 kB / 17.16 MB, free: 6.309 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.001406/0.001406, allocations: 194 kB / 18.08 MB, free: 5.402 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.799/1.799, allocations: 205.1 MB / 223.9 MB, free: 12.52 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.001239/0.001239, allocations: 43.94 kB / 280 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1404, allocations: 46.63 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004155/0.1446, allocations: 2.156 MB / 328.8 MB, free: 2.727 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.1471, allocations: 1.081 MB / 329.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.1472, allocations: 0 / 329.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.1475, allocations: 31.78 kB / 329.9 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.1476, allocations: 43.64 kB / 329.9 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004326/0.1481, allocations: 111.9 kB / 330 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.1484, allocations: 343 kB / 330.4 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002646/0.1487, allocations: 107 kB / 330.5 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008838/0.1496, allocations: 0.9163 MB / 331.4 MB, free: 104 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.1498, allocations: 183.2 kB / 331.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.781e-05/0.1499, allocations: 16 kB / 331.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.887e-05/0.15, allocations: 12 kB / 331.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.1502, allocations: 155.4 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.1504, allocations: 266 kB / 332 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009079/0.1514, allocations: 0.9385 MB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1514, allocations: 0 / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.1514, allocations: 0 / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1514, allocations: 0 / 332.9 MB, free: 14.54 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.001366/0.1528, allocations: 1.118 MB / 334 MB, free: 13.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.1528, allocations: 16.03 kB / 334.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.153, allocations: 80 kB / 334.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.1535, allocations: 432 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.1535, allocations: 12.38 kB / 334.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.1536, allocations: 20.38 kB / 334.6 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006883/0.1543, allocations: 309.5 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.1543, allocations: 0 / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.875e-05/0.1544, allocations: 11.94 kB / 334.9 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.1544, allocations: 4 kB / 334.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.1549, allocations: 211.9 kB / 335.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1562, allocations: 0.8901 MB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.1567, allocations: 214.5 kB / 336.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.157, allocations: 164.8 kB / 336.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.1571, allocations: 0 / 336.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007381/0.1578, allocations: 385.8 kB / 336.8 MB, free: 10.49 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.1578, allocations: 0 / 336.8 MB, free: 10.49 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001621/0.1595, allocations: 0.7375 MB / 337.5 MB, free: 9.719 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/0.1596, allocations: 174.2 kB / 337.7 MB, free: 9.512 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/0.161, allocations: 0.9999 MB / 338.7 MB, free: 8.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.291e-05/0.1611, allocations: 41.62 kB / 338.7 MB, free: 8.453 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.1613, allocations: 153.8 kB / 338.9 MB, free: 8.301 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.309e-05/0.1614, allocations: 55.34 kB / 338.9 MB, free: 8.246 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/0.1616, allocations: 169 kB / 339.1 MB, free: 8.074 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1618, allocations: 338.8 kB / 339.4 MB, free: 7.734 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.1621, allocations: 128 kB / 339.5 MB, free: 7.609 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.1624, allocations: 160.2 kB / 339.7 MB, free: 7.438 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007042/0.1631, allocations: 477.7 kB / 340.2 MB, free: 6.906 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1631, allocations: 0 / 340.2 MB, free: 6.906 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001026/0.1641, allocations: 0.5897 MB / 340.7 MB, free: 6.285 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/0.1643, allocations: 130.8 kB / 340.9 MB, free: 6.133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1643, allocations: 0 / 340.9 MB, free: 6.133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.1643, allocations: 4 kB / 340.9 MB, free: 6.129 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.1645, allocations: 16.03 kB / 340.9 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.1645, allocations: 7.922 kB / 340.9 MB, free: 6.105 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.1648, allocations: 31.89 kB / 340.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.1649, allocations: 115.9 kB / 341 MB, free: 5.961 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.0006541/0.1656, allocations: 0.5337 MB / 341.6 MB, free: 5.391 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.1657, allocations: 79.06 kB / 341.7 MB, free: 5.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002357/0.166, allocations: 134.4 kB / 341.8 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.166, allocations: 0 / 341.8 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.166, allocations: 0 / 341.8 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.166, allocations: 0 / 341.8 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008074/0.1668, allocations: 0.6336 MB / 342.4 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1668, allocations: 0 / 342.4 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.822e-05/0.1669, allocations: 8 kB / 342.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1669, allocations: 7.938 kB / 342.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.446e-05/0.167, allocations: 23.98 kB / 342.5 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.167, allocations: 4 kB / 342.5 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.167, allocations: 3.984 kB / 342.5 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.1682, allocations: 0.6978 MB / 343.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000673/0.1689, allocations: 499.7 kB / 343.6 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.169, allocations: 23.98 kB / 343.7 MB, free: 3.164 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.1692, allocations: 20.11 kB / 343.7 MB, free: 3.145 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.1694, allocations: 55.95 kB / 343.7 MB, free: 3.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.1696, allocations: 119.9 kB / 343.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009369/0.1705, allocations: 0.725 MB / 344.6 MB, free: 2.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1705, allocations: 0 / 344.6 MB, free: 2.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003903/0.1709, allocations: 95.84 kB / 344.7 MB, free: 2.156 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.0002189/0.1711, allocations: 138.7 kB / 344.8 MB, free: 2.012 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009279/0.1721, allocations: 0.6537 MB / 345.5 MB, free: 1.309 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1721, allocations: 0 / 345.5 MB, free: 1.309 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005463/0.1726, allocations: 0.5328 MB / 346 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008045/0.1735, allocations: 187.7 kB / 346.2 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.1759, allocations: 1.553 MB / 347.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007294/0.1766, allocations: 0.9754 MB / 348.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004087/0.177, allocations: 165.1 kB / 348.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.1772, allocations: 67.3 kB / 348.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1772, allocations: 0 / 348.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Templates: time 0.01512/0.1924, allocations: 7.348 MB / 356.3 MB, free: 6.355 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