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.0009992/0.0009992, allocations: 97.17 kB / 16.94 MB, free: 5.98 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.001257/0.001257, allocations: 183 kB / 17.82 MB, free: 5.652 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.851/1.851, allocations: 205.4 MB / 224 MB, free: 13.18 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.0006306/0.0006311, allocations: 8 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1318, allocations: 47.59 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00358/0.1355, allocations: 1.742 MB / 330.1 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.1381, allocations: 1.007 MB / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.1384, allocations: 0 / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00027/0.1387, allocations: 27.78 kB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002679/0.139, allocations: 51.78 kB / 331.2 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006472/0.1397, allocations: 79.78 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006618/0.1403, allocations: 215.6 kB / 331.4 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.1406, allocations: 85.61 kB / 331.5 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009835/0.1416, allocations: 0.6589 MB / 332.2 MB, free: 224 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003564/0.142, allocations: 187.5 kB / 332.4 MB, free: 36 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.385e-05/0.1421, allocations: 8 kB / 332.4 MB, free: 28 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.1422, allocations: 8 kB / 332.4 MB, free: 20 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000225/0.1424, allocations: 147.5 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.1426, allocations: 141.3 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009161/0.1436, allocations: 0.7913 MB / 333.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1436, allocations: 0 / 333.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1436, allocations: 0 / 333.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.215e-05/0.1436, allocations: 0 / 333.5 MB, free: 14.94 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.00207/0.1457, allocations: 0.9668 MB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.446e-05/0.1458, allocations: 8.031 kB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002712/0.1461, allocations: 83 kB / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007921/0.1469, allocations: 403.4 kB / 334.9 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.082e-05/0.1469, allocations: 20 kB / 334.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.793e-05/0.147, allocations: 24 kB / 335 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000779/0.1478, allocations: 305.2 kB / 335.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.1478, allocations: 0 / 335.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.228e-05/0.1479, allocations: 11.98 kB / 335.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1479, allocations: 4 kB / 335.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005126/0.1484, allocations: 203.9 kB / 335.5 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001991/0.1505, allocations: 0.8826 MB / 336.3 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005238/0.151, allocations: 214.5 kB / 336.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.151, allocations: 8.031 kB / 336.6 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000731/0.1518, allocations: 389.8 kB / 336.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 3.246e-06/0.1518, allocations: 0 / 336.9 MB, free: 11.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001694/0.1535, allocations: 0.8997 MB / 337.8 MB, free: 10.26 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.1537, allocations: 170.2 kB / 338 MB, free: 10.06 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002002/0.1557, allocations: 1.004 MB / 339 MB, free: 9.043 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.934e-05/0.1557, allocations: 41.69 kB / 339.1 MB, free: 8.996 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.1559, allocations: 149.8 kB / 339.2 MB, free: 8.848 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.503e-05/0.156, allocations: 55.34 kB / 339.3 MB, free: 8.793 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.156, allocations: 11.98 kB / 339.3 MB, free: 8.781 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.1562, allocations: 330.8 kB / 339.6 MB, free: 8.449 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.1565, allocations: 124 kB / 339.7 MB, free: 8.328 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.1568, allocations: 164.2 kB / 339.9 MB, free: 8.152 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.1571, allocations: 234.7 kB / 340.1 MB, free: 7.898 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1571, allocations: 0 / 340.1 MB, free: 7.898 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009568/0.1581, allocations: 0.578 MB / 340.7 MB, free: 7.289 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.1582, allocations: 138.8 kB / 340.8 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1582, allocations: 0 / 340.8 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1583, allocations: 4 kB / 340.8 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.912e-05/0.1584, allocations: 8 kB / 340.8 MB, free: 7.117 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1584, allocations: 7.984 kB / 340.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.1587, allocations: 43.89 kB / 340.9 MB, free: 7.066 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.1589, allocations: 119.8 kB / 341 MB, free: 6.949 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.0007005/0.1596, allocations: 0.5259 MB / 341.5 MB, free: 6.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.1597, allocations: 75.11 kB / 341.6 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.16, allocations: 142.4 kB / 341.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.16, allocations: 0 / 341.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.16, allocations: 0 / 341.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.16, allocations: 0 / 341.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000759/0.1608, allocations: 0.6259 MB / 342.4 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1608, allocations: 4 kB / 342.4 MB, free: 5.484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.831e-05/0.1608, allocations: 15.94 kB / 342.4 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1608, allocations: 0 / 342.4 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.1609, allocations: 27.98 kB / 342.4 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1609, allocations: 0 / 342.4 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1609, allocations: 0 / 342.4 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.162, allocations: 0.7062 MB / 343.1 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007731/0.1628, allocations: 495.7 kB / 343.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.1629, allocations: 24 kB / 343.6 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.1632, allocations: 35.81 kB / 343.7 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.1634, allocations: 55.94 kB / 343.7 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.1635, allocations: 111.9 kB / 343.8 MB, free: 3.965 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.1646, allocations: 0.7367 MB / 344.6 MB, free: 3.23 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1646, allocations: 0 / 344.6 MB, free: 3.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004248/0.165, allocations: 95.84 kB / 344.6 MB, free: 3.137 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.0002208/0.1653, allocations: 130.5 kB / 344.8 MB, free: 3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00096/0.1662, allocations: 0.6576 MB / 345.4 MB, free: 2.293 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1662, allocations: 3.938 kB / 345.4 MB, free: 2.289 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005626/0.1668, allocations: 0.5289 MB / 346 MB, free: 1.711 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000751/0.1676, allocations: 171.2 kB / 346.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.1699, allocations: 1.492 MB / 347.6 MB, free: 20 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007529/0.1707, allocations: 0.9795 MB / 348.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000357/0.171, allocations: 173.2 kB / 348.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.1712, allocations: 67.3 kB / 348.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1712, allocations: 0 / 348.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of Templates: time 0.01218/0.1834, allocations: 6.688 MB / 355.5 MB, free: 8.066 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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