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.001257/0.001257, allocations: 109.4 kB / 18.34 MB, free: 4.676 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.00164/0.00164, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.557/1.557, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.00129/0.00129, allocations: 51.94 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1252, allocations: 46.62 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003876/0.1292, allocations: 2.121 MB / 330.8 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.1319, allocations: 1.046 MB / 331.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.1321, allocations: 4 kB / 331.9 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.1324, allocations: 39.64 kB / 331.9 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.1325, allocations: 47.52 kB / 332 MB, free: 492 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005041/0.1331, allocations: 127.8 kB / 332.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005128/0.1336, allocations: 411.1 kB / 332.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.1339, allocations: 111 kB / 332.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.1349, allocations: 0.9436 MB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004049/0.1353, allocations: 191.2 kB / 333.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.17e-05/0.1354, allocations: 32 kB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.807e-05/0.1355, allocations: 36 kB / 333.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002054/0.1357, allocations: 171.3 kB / 334 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002855/0.136, allocations: 286.1 kB / 334.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.1371, allocations: 0.9732 MB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.1371, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1371, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1371, allocations: 0 / 335.2 MB, free: 13.23 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.001548/0.1387, allocations: 1.13 MB / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.1387, allocations: 15.89 kB / 336.4 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.1389, allocations: 80 kB / 336.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007564/0.1396, allocations: 432 kB / 336.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.717e-05/0.1397, allocations: 16.38 kB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.791e-05/0.1398, allocations: 16.38 kB / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007068/0.1405, allocations: 313.5 kB / 337.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1405, allocations: 0 / 337.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.1406, allocations: 12 kB / 337.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.1406, allocations: 4 kB / 337.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000424/0.141, allocations: 207.9 kB / 337.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.1424, allocations: 0.8863 MB / 338.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.1429, allocations: 222.4 kB / 338.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.1432, allocations: 152.8 kB / 338.7 MB, free: 9.586 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.1433, allocations: 4 kB / 338.7 MB, free: 9.582 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007199/0.144, allocations: 385.8 kB / 339.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.444e-06/0.144, allocations: 0 / 339.1 MB, free: 9.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001552/0.1456, allocations: 0.7452 MB / 339.8 MB, free: 8.391 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.1457, allocations: 170.2 kB / 340 MB, free: 8.188 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001573/0.1473, allocations: 1.008 MB / 341 MB, free: 7.168 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.526e-05/0.1474, allocations: 33.7 kB / 341 MB, free: 7.129 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.1475, allocations: 157.8 kB / 341.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.815e-05/0.1476, allocations: 59.3 kB / 341.2 MB, free: 6.914 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.1479, allocations: 165 kB / 341.4 MB, free: 6.746 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1481, allocations: 338.8 kB / 341.7 MB, free: 6.406 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.1483, allocations: 127.9 kB / 341.8 MB, free: 6.281 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.1486, allocations: 156.2 kB / 342 MB, free: 6.113 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006159/0.1493, allocations: 485.6 kB / 342.5 MB, free: 5.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.1493, allocations: 0 / 342.5 MB, free: 5.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001007/0.1503, allocations: 0.5742 MB / 343 MB, free: 4.969 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.1504, allocations: 138.7 kB / 343.2 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.1504, allocations: 3.984 kB / 343.2 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.1505, allocations: 4 kB / 343.2 MB, free: 4.801 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1506, allocations: 16 kB / 343.2 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.1506, allocations: 8 kB / 343.2 MB, free: 4.777 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.1509, allocations: 19.89 kB / 343.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.151, allocations: 119.9 kB / 343.3 MB, free: 4.641 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.0007101/0.1517, allocations: 0.5298 MB / 343.9 MB, free: 4.078 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.1518, allocations: 79.28 kB / 343.9 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002227/0.1521, allocations: 130.4 kB / 344.1 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.1521, allocations: 4 kB / 344.1 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1521, allocations: 0 / 344.1 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1521, allocations: 0 / 344.1 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007722/0.1529, allocations: 0.6296 MB / 344.7 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1529, allocations: 0 / 344.7 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.942e-05/0.1529, allocations: 8 kB / 344.7 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.153, allocations: 4 kB / 344.7 MB, free: 3.164 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.254e-05/0.153, allocations: 27.92 kB / 344.7 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.153, allocations: 4 kB / 344.7 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.1531, allocations: 7.984 kB / 344.8 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.1543, allocations: 0.6985 MB / 345.5 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008183/0.1551, allocations: 499.6 kB / 345.9 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.1553, allocations: 20 kB / 346 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.1555, allocations: 19.98 kB / 346 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.1557, allocations: 47.95 kB / 346 MB, free: 1.789 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/0.1558, allocations: 115.9 kB / 346.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009589/0.1568, allocations: 0.7368 MB / 346.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.1568, allocations: 0 / 346.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.1572, allocations: 96.06 kB / 347 MB, free: 0.8477 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.0001886/0.1574, allocations: 130.8 kB / 347.1 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009417/0.1583, allocations: 0.6614 MB / 347.8 MB, free: 0 / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-05/0.1584, allocations: 0 / 347.8 MB, free: 0 / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005653/0.1589, allocations: 0.525 MB / 348.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008016/0.1598, allocations: 208 kB / 348.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.162, allocations: 1.313 MB / 349.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00069/0.1627, allocations: 0.9636 MB / 350.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004/0.1632, allocations: 169.2 kB / 350.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.1634, allocations: 75.28 kB / 351 MB, free: 12.65 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1634, allocations: 0 / 351 MB, free: 12.65 MB / 302.1 MB Notification: Performance of Templates: time 0.01345/0.1768, allocations: 7.71 MB / 358.7 MB, free: 4.91 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches