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.001331/0.001331, allocations: 110.2 kB / 17.17 MB, free: 6.348 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.001528/0.001528, allocations: 194.9 kB / 18.08 MB, free: 5.441 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.914/1.914, allocations: 222.9 MB / 241.8 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 46.83 kB / 300.6 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1277, allocations: 49.45 MB / 350.1 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004281/0.132, allocations: 2.153 MB / 352.2 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.1346, allocations: 1.037 MB / 353.2 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.1349, allocations: 0 / 353.2 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.1351, allocations: 31.78 kB / 353.3 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.1355, allocations: 43.64 kB / 353.3 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005496/0.136, allocations: 116.4 kB / 353.4 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006196/0.1367, allocations: 335.1 kB / 353.8 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003213/0.137, allocations: 107.1 kB / 353.9 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.1382, allocations: 0.9201 MB / 354.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.1385, allocations: 171.2 kB / 355 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.594e-05/0.1386, allocations: 12 kB / 355 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.462e-05/0.1387, allocations: 16 kB / 355 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001996/0.1389, allocations: 155.3 kB / 355.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003752/0.1393, allocations: 266.1 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000812/0.1401, allocations: 0.811 MB / 356.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1401, allocations: 0 / 356.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.1401, allocations: 0 / 356.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.1401, allocations: 3.938 kB / 356.2 MB, free: 14.46 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.002135/0.1423, allocations: 1.121 MB / 357.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.1423, allocations: 15.97 kB / 357.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.1426, allocations: 80 kB / 357.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005731/0.1431, allocations: 432 kB / 357.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.846e-05/0.1432, allocations: 16.38 kB / 357.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.331e-05/0.1433, allocations: 28.38 kB / 357.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007259/0.144, allocations: 305.7 kB / 358.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.144, allocations: 0 / 358.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.12e-05/0.1441, allocations: 12 kB / 358.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.1441, allocations: 0 / 358.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004901/0.1446, allocations: 203.9 kB / 358.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.1463, allocations: 0.8862 MB / 359.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005216/0.1468, allocations: 218.5 kB / 359.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.1472, allocations: 164.8 kB / 359.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.1472, allocations: 0 / 359.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006466/0.1479, allocations: 377.9 kB / 360 MB, free: 10.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.1479, allocations: 0 / 360 MB, free: 10.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001531/0.1494, allocations: 0.735 MB / 360.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.1496, allocations: 178.2 kB / 360.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.1512, allocations: 0.9999 MB / 361.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.049e-05/0.1513, allocations: 45.69 kB / 362 MB, free: 8.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.1514, allocations: 153.8 kB / 362.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.85e-05/0.1515, allocations: 55.34 kB / 362.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000313/0.1519, allocations: 169 kB / 362.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.152, allocations: 338.8 kB / 362.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.1523, allocations: 127.9 kB / 362.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.1527, allocations: 164.2 kB / 363 MB, free: 7.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006858/0.1534, allocations: 469.8 kB / 363.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1534, allocations: 4 kB / 363.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001082/0.1545, allocations: 0.5819 MB / 364 MB, free: 6.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.1546, allocations: 130.8 kB / 364.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.37e-05/0.1546, allocations: 4 kB / 364.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1547, allocations: 4.062 kB / 364.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1548, allocations: 16 kB / 364.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.1548, allocations: 7.922 kB / 364.2 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003516/0.1552, allocations: 27.89 kB / 364.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.1553, allocations: 115.9 kB / 364.3 MB, free: 5.898 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.000754/0.1561, allocations: 0.5298 MB / 364.8 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.1562, allocations: 79.06 kB / 364.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.1565, allocations: 130.4 kB / 365 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1565, allocations: 0 / 365 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.1565, allocations: 4.031 kB / 365 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1566, allocations: 3.938 kB / 365.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009574/0.1575, allocations: 0.6336 MB / 365.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1575, allocations: 0 / 365.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.621e-05/0.1576, allocations: 12 kB / 365.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.1576, allocations: 0 / 365.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.533e-05/0.1577, allocations: 27.98 kB / 365.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.1577, allocations: 7.984 kB / 365.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1577, allocations: 0 / 365.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.1589, allocations: 0.7012 MB / 366.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007414/0.1597, allocations: 499.8 kB / 366.9 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.1598, allocations: 27.98 kB / 366.9 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.1601, allocations: 31.89 kB / 367 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.1603, allocations: 47.95 kB / 367 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.1605, allocations: 119.9 kB / 367.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001174/0.1617, allocations: 0.7289 MB / 367.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1617, allocations: 0 / 367.9 MB, free: 2.188 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004636/0.1621, allocations: 91.94 kB / 368 MB, free: 2.098 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.0002148/0.1624, allocations: 138.7 kB / 368.1 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.1634, allocations: 0.6652 MB / 368.8 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1634, allocations: 0 / 368.8 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.164, allocations: 0.5288 MB / 369.3 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009016/0.1649, allocations: 180.7 kB / 369.5 MB, free: 500 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1921/0.3571, allocations: 1.625 MB / 371.1 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006865/0.3578, allocations: 0.9671 MB / 372.1 MB, free: 24.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003485/0.3582, allocations: 96.25 kB / 372.2 MB, free: 24.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3582, allocations: 0 / 372.2 MB, free: 24.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01242/0.3706, allocations: 5.408 MB / 377.6 MB, free: 24.06 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/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