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.0008917/0.000892, allocations: 94.56 kB / 17.3 MB, free: 6.078 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.001245/0.001246, allocations: 180.2 kB / 18.21 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.044/2.044, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004694/0.0004697, allocations: 12 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003362/0.1296, allocations: 1.806 MB / 330.8 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003121/0.1327, allocations: 1.069 MB / 331.8 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.1329, allocations: 7.938 kB / 331.8 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002546/0.1332, allocations: 27.78 kB / 331.9 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.1333, allocations: 35.72 kB / 331.9 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006354/0.134, allocations: 115.8 kB / 332 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005395/0.1345, allocations: 339.1 kB / 332.3 MB, free: 368 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.1349, allocations: 107.1 kB / 332.5 MB, free: 268 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.136, allocations: 0.9084 MB / 333.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.1362, allocations: 167.2 kB / 333.5 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.647e-05/0.1363, allocations: 8 kB / 333.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.236e-05/0.1364, allocations: 8 kB / 333.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.1366, allocations: 155.3 kB / 333.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000282/0.1368, allocations: 275.8 kB / 334 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000859/0.1377, allocations: 0.9227 MB / 334.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1377, allocations: 0 / 334.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1377, allocations: 0 / 334.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1378, allocations: 0 / 334.9 MB, free: 13.82 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.001683/0.1394, allocations: 0.9669 MB / 335.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.397e-05/0.1395, allocations: 8.031 kB / 335.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.1398, allocations: 84 kB / 335.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007612/0.1405, allocations: 432 kB / 336.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.159e-05/0.1406, allocations: 16.38 kB / 336.4 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.937e-05/0.1407, allocations: 24.31 kB / 336.4 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007581/0.1415, allocations: 309.5 kB / 336.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1415, allocations: 0 / 336.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.113e-05/0.1415, allocations: 8 kB / 336.7 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.1416, allocations: 8 kB / 336.7 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/0.142, allocations: 203.9 kB / 336.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.1436, allocations: 0.8901 MB / 337.8 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.1441, allocations: 214.5 kB / 338 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.1444, allocations: 156.8 kB / 338.2 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.1444, allocations: 96 / 338.2 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006051/0.145, allocations: 389.9 kB / 338.6 MB, free: 9.926 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.1451, allocations: 3.938 kB / 338.6 MB, free: 9.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00145/0.1465, allocations: 0.7412 MB / 339.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.1467, allocations: 174.2 kB / 339.5 MB, free: 8.941 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.1481, allocations: 0.9922 MB / 340.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.871e-05/0.1482, allocations: 37.7 kB / 340.5 MB, free: 7.895 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.1483, allocations: 157.7 kB / 340.7 MB, free: 7.738 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.887e-05/0.1484, allocations: 59.33 kB / 340.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.77e-05/0.1485, allocations: 41.7 kB / 340.8 MB, free: 7.633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.1487, allocations: 346.8 kB / 341.1 MB, free: 7.285 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002695/0.149, allocations: 131.9 kB / 341.2 MB, free: 7.156 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.1493, allocations: 156.2 kB / 341.4 MB, free: 6.988 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006196/0.1499, allocations: 477.7 kB / 341.8 MB, free: 6.457 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1499, allocations: 0 / 341.8 MB, free: 6.457 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009612/0.1509, allocations: 0.5819 MB / 342.4 MB, free: 5.844 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.151, allocations: 134.8 kB / 342.6 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1511, allocations: 0 / 342.6 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1511, allocations: 4 kB / 342.6 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.661e-05/0.1512, allocations: 16.11 kB / 342.6 MB, free: 5.668 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.1512, allocations: 4 kB / 342.6 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.1515, allocations: 43.88 kB / 342.6 MB, free: 5.621 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.1517, allocations: 111.9 kB / 342.7 MB, free: 5.512 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.000699/0.1524, allocations: 0.5298 MB / 343.3 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.1525, allocations: 79.14 kB / 343.3 MB, free: 4.867 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002258/0.1527, allocations: 130.4 kB / 343.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.1527, allocations: 4 kB / 343.5 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1527, allocations: 0 / 343.5 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1528, allocations: 0 / 343.5 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007715/0.1535, allocations: 0.6335 MB / 344.1 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1535, allocations: 0 / 344.1 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.178e-05/0.1536, allocations: 15.98 kB / 344.1 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1536, allocations: 3.938 kB / 344.1 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/0.1537, allocations: 23.98 kB / 344.1 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1537, allocations: 4 kB / 344.1 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.1537, allocations: 0 / 344.1 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.1548, allocations: 0.7061 MB / 344.9 MB, free: 3.242 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006973/0.1555, allocations: 499.7 kB / 345.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.1556, allocations: 20 kB / 345.4 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.1558, allocations: 23.98 kB / 345.4 MB, free: 2.691 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.156, allocations: 59.88 kB / 345.4 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.1562, allocations: 115.9 kB / 345.6 MB, free: 2.52 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.1572, allocations: 0.7213 MB / 346.3 MB, free: 1.801 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1572, allocations: 7.938 kB / 346.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004177/0.1577, allocations: 99.78 kB / 346.4 MB, free: 1.695 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.0002219/0.1579, allocations: 134.7 kB / 346.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009809/0.1589, allocations: 0.6576 MB / 347.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1589, allocations: 0 / 347.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005563/0.1595, allocations: 0.5327 MB / 347.7 MB, free: 272 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000912/0.1604, allocations: 171.1 kB / 347.9 MB, free: 104 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.1629, allocations: 1.559 MB / 349.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007017/0.1636, allocations: 0.96 MB / 350.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003676/0.164, allocations: 165.1 kB / 350.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.1642, allocations: 75.3 kB / 350.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of SimCode: time 1.904e-06/0.1642, allocations: 0 / 350.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of Templates: time 0.01223/0.1764, allocations: 6.852 MB / 357.5 MB, free: 6.406 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