Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001562/0.002642, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001275/0.002278, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9867/0.9867, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07775/1.064, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.542e-05/1.667e-05, allocations: 6.25 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002308/0.002325, allocations: 2.14 MB / 246.7 MB, free: 12.17 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.00389, allocations: 1.06 MB / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.999e-05/0.00398, allocations: 11.94 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.004089, allocations: 39.59 kB / 247.8 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.858e-05/0.004177, allocations: 59.5 kB / 247.8 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.00446, allocations: 127.8 kB / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003401/0.0048, allocations: 399 kB / 248.4 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.004945, allocations: 74.25 kB / 248.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007204/0.005665, allocations: 0.9754 MB / 249.4 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.005839, allocations: 187.5 kB / 249.6 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.861e-05/0.005888, allocations: 32 kB / 249.6 MB, free: 9.211 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.143e-05/0.005929, allocations: 36 kB / 249.6 MB, free: 9.176 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.006032, allocations: 151.5 kB / 249.8 MB, free: 9.027 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.006149, allocations: 115.6 kB / 249.9 MB, free: 8.914 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004339/0.006583, allocations: 0.615 MB / 250.5 MB, free: 8.297 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.421e-05/0.006597, allocations: 0 / 250.5 MB, free: 8.297 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.619e-06/0.006602, allocations: 4 kB / 250.5 MB, free: 8.293 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.838e-05/0.00662, allocations: 0 / 250.5 MB, free: 8.293 MB / 250.7 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.0009087/0.007529, allocations: 1.115 MB / 251.6 MB, free: 7.125 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.007558, allocations: 8.031 kB / 251.7 MB, free: 7.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.301e-05/0.007651, allocations: 68.88 kB / 251.7 MB, free: 7.051 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.007929, allocations: 350.2 kB / 252.1 MB, free: 6.684 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.007957, allocations: 16.38 kB / 252.1 MB, free: 6.668 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.007984, allocations: 20.38 kB / 252.1 MB, free: 6.648 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.00859, allocations: 345.2 kB / 252.4 MB, free: 6.277 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.008598, allocations: 192 / 252.4 MB, free: 6.277 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/0.008621, allocations: 12.36 kB / 252.4 MB, free: 6.266 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.008628, allocations: 7.938 kB / 252.5 MB, free: 6.258 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.008791, allocations: 206.7 kB / 252.7 MB, free: 6.031 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006101/0.009401, allocations: 466.3 kB / 253.1 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.009638, allocations: 241.3 kB / 253.3 MB, free: 5.289 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.009762, allocations: 187.6 kB / 253.5 MB, free: 5.078 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.009776, allocations: 8.031 kB / 253.5 MB, free: 5.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002792/0.01006, allocations: 456.7 kB / 254 MB, free: 4.562 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.01006, allocations: 0 / 254 MB, free: 4.562 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004968/0.01055, allocations: 0.6852 MB / 254.7 MB, free: 3.797 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.0106, allocations: 118.8 kB / 254.8 MB, free: 3.656 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004898/0.01109, allocations: 0.6481 MB / 255.4 MB, free: 2.996 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.01112, allocations: 37.7 kB / 255.5 MB, free: 2.953 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.28e-05/0.01117, allocations: 134.4 kB / 255.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.238e-05/0.01123, allocations: 63.5 kB / 255.7 MB, free: 2.758 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.01134, allocations: 141.3 kB / 255.8 MB, free: 2.613 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.115e-05/0.01142, allocations: 342.8 kB / 256.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.01155, allocations: 190.8 kB / 256.3 MB, free: 2.059 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.01169, allocations: 231 kB / 256.5 MB, free: 1.793 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.01194, allocations: 428.5 kB / 257 MB, free: 1.309 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.01195, allocations: 3.938 kB / 257 MB, free: 1.305 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003235/0.01227, allocations: 471 kB / 257.4 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.203e-05/0.01234, allocations: 142.7 kB / 257.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01235, allocations: 0 / 257.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.01236, allocations: 8.062 kB / 257.6 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.171e-05/0.01242, allocations: 11.98 kB / 257.6 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.01242, allocations: 7.922 kB / 257.6 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.01253, allocations: 19.95 kB / 257.6 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-05/0.0126, allocations: 103.9 kB / 257.7 MB, free: 488 kB / 250.7 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.0003493/0.01295, allocations: 489.7 kB / 258.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.01301, allocations: 63.92 kB / 258.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.01315, allocations: 114.4 kB / 258.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.01315, allocations: 4 kB / 258.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.01315, allocations: 0 / 258.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.01316, allocations: 3.984 kB / 258.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.01343, allocations: 301.4 kB / 258.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.01344, allocations: 0 / 258.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.409e-05/0.01347, allocations: 15.98 kB / 258.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003196/0.01379, allocations: 285.1 kB / 259 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.01379, allocations: 0 / 259 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.01381, allocations: 23.92 kB / 259 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.01382, allocations: 0 / 259 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01382, allocations: 0 / 259 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006171/0.01443, allocations: 0.5609 MB / 259.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.829e-05/0.01449, allocations: 20 kB / 259.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.776e-05/0.01457, allocations: 19.97 kB / 259.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.671e-05/0.01465, allocations: 27.91 kB / 259.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.378e-05/0.01471, allocations: 107.9 kB / 259.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002664/0.01498, allocations: 320.3 kB / 260 MB, free: 14.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01498, allocations: 0 / 260 MB, free: 14.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001911/0.01517, allocations: 99.89 kB / 260.1 MB, free: 13.92 MB / 266.7 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.000112/0.01528, allocations: 120.4 kB / 260.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004123/0.01569, allocations: 0.6991 MB / 260.9 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.0157, allocations: 8 kB / 261 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.01594, allocations: 488 kB / 261.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.01636, allocations: 251.6 kB / 261.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.0179, allocations: 1.382 MB / 263.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001072/0.018, allocations: 155.7 kB / 263.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002184/0.01822, allocations: 153.1 kB / 263.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.01859, allocations: 251.1 kB / 263.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of SimCode: time 1.162e-06/0.01859, allocations: 0 / 263.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of Templates: time 0.009119/0.02771, allocations: 8.087 MB / 271.7 MB, free: 2.238 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.656697990372777]