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.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.001149/0.001149, allocations: 73.98 kB / 22.99 MB, free: 1.508 MB / 18.57 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.001647/0.001647, allocations: 168.2 kB / 26.39 MB, free: 7.977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.033/1.033, allocations: 158.6 MB / 188.3 MB, free: 2.828 MB / 170.7 MB " [Timeout remaining time 179] 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.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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.761e-05/1.922e-05, allocations: 2.312 kB / 252.3 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002565/0.002584, allocations: 2.065 MB / 254.3 MB, free: 5.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.004477, allocations: 1.022 MB / 255.3 MB, free: 4.148 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.004577, allocations: 7.938 kB / 255.3 MB, free: 4.141 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.004742, allocations: 39.66 kB / 255.4 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.004876, allocations: 59.5 kB / 255.4 MB, free: 4.043 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.00523, allocations: 131.7 kB / 255.6 MB, free: 3.914 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003594/0.005589, allocations: 399 kB / 256 MB, free: 3.523 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.005759, allocations: 71.62 kB / 256 MB, free: 3.453 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008454/0.006604, allocations: 1.025 MB / 257.1 MB, free: 2.426 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.006841, allocations: 175.5 kB / 257.2 MB, free: 2.254 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.233e-05/0.006913, allocations: 36 kB / 257.3 MB, free: 2.219 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.796e-05/0.006971, allocations: 36 kB / 257.3 MB, free: 2.184 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.007138, allocations: 175.3 kB / 257.5 MB, free: 2.012 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.007284, allocations: 139.4 kB / 257.6 MB, free: 1.875 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005425/0.007827, allocations: 0.6539 MB / 258.3 MB, free: 1.215 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.00783, allocations: 0 / 258.3 MB, free: 1.215 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.007832, allocations: 4 kB / 258.3 MB, free: 1.211 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.007842, allocations: 0 / 258.3 MB, free: 1.211 MB / 234.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.001153/0.008995, allocations: 1.224 MB / 259.5 MB, free: 15.92 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.009036, allocations: 11.98 kB / 259.5 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.009164, allocations: 100.4 kB / 259.6 MB, free: 15.81 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.00949, allocations: 381 kB / 260 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.009523, allocations: 16.38 kB / 260 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.009556, allocations: 16.38 kB / 260 MB, free: 15.38 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.009982, allocations: 365.2 kB / 260.4 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.009993, allocations: 192 / 260.4 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.01002, allocations: 12.55 kB / 260.4 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.01003, allocations: 7.938 kB / 260.4 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.01024, allocations: 218.7 kB / 260.6 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008026/0.01104, allocations: 0.7181 MB / 261.3 MB, free: 13.98 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.01134, allocations: 261.8 kB / 261.6 MB, free: 13.69 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.0115, allocations: 206.6 kB / 261.8 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.01152, allocations: 4.031 kB / 261.8 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003803/0.0119, allocations: 470.3 kB / 262.2 MB, free: 12.93 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.845e-06/0.0119, allocations: 3.984 kB / 262.2 MB, free: 12.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007998/0.0127, allocations: 0.88 MB / 263.1 MB, free: 11.97 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.01277, allocations: 174.2 kB / 263.3 MB, free: 11.76 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009014/0.01367, allocations: 0.9085 MB / 264.2 MB, free: 10.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.01371, allocations: 33.7 kB / 264.2 MB, free: 10.8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.01382, allocations: 204.6 kB / 264.4 MB, free: 10.59 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/0.01388, allocations: 59.5 kB / 264.5 MB, free: 10.54 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.01403, allocations: 175 kB / 264.7 MB, free: 10.36 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.01419, allocations: 0.5078 MB / 265.2 MB, free: 9.836 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.01435, allocations: 194.8 kB / 265.4 MB, free: 9.621 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.01454, allocations: 253.2 kB / 265.6 MB, free: 9.328 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/0.01482, allocations: 427.8 kB / 266 MB, free: 8.84 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01483, allocations: 0 / 266 MB, free: 8.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005419/0.01537, allocations: 0.6393 MB / 266.7 MB, free: 8.145 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.703e-05/0.01545, allocations: 146.7 kB / 266.8 MB, free: 7.977 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.01545, allocations: 0 / 266.8 MB, free: 7.977 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.789e-06/0.01546, allocations: 4 kB / 266.8 MB, free: 7.973 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.806e-05/0.01552, allocations: 16 kB / 266.8 MB, free: 7.957 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.01552, allocations: 4 kB / 266.8 MB, free: 7.953 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.01566, allocations: 15.98 kB / 266.8 MB, free: 7.938 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.259e-05/0.01574, allocations: 115.9 kB / 267 MB, free: 7.824 MB / 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.0006801/0.01642, allocations: 0.5249 MB / 267.5 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.01654, allocations: 107.5 kB / 267.6 MB, free: 7.156 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002242/0.01676, allocations: 110.4 kB / 267.7 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.01677, allocations: 0 / 267.7 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.01677, allocations: 0 / 267.7 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.01677, allocations: 0 / 267.7 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004825/0.01726, allocations: 436.5 kB / 268.1 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.01726, allocations: 0 / 268.1 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.965e-05/0.01731, allocations: 15.98 kB / 268.1 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.01731, allocations: 128 / 268.1 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.01735, allocations: 31.98 kB / 268.2 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.01735, allocations: 0 / 268.2 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.01735, allocations: 7.938 kB / 268.2 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007692/0.01812, allocations: 0.7789 MB / 268.9 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005297/0.01865, allocations: 476.8 kB / 269.4 MB, free: 5.211 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.222e-05/0.01873, allocations: 20 kB / 269.4 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.01883, allocations: 15.98 kB / 269.5 MB, free: 5.176 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.01894, allocations: 35.91 kB / 269.5 MB, free: 5.141 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.019e-05/0.01902, allocations: 116 kB / 269.6 MB, free: 5.027 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004388/0.01946, allocations: 498.5 kB / 270.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.01946, allocations: 0 / 270.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002877/0.01975, allocations: 95.89 kB / 270.2 MB, free: 4.453 MB / 250.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.0001417/0.01989, allocations: 135.2 kB / 270.3 MB, free: 4.312 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005488/0.02044, allocations: 0.7135 MB / 271 MB, free: 3.496 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.02044, allocations: 128 / 271 MB, free: 3.496 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.02075, allocations: 0.4961 MB / 271.5 MB, free: 2.922 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/0.02128, allocations: 233.5 kB / 271.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.02283, allocations: 1.38 MB / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.02295, allocations: 151.8 kB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002502/0.0232, allocations: 157.1 kB / 273.4 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/0.02366, allocations: 278 kB / 273.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02366, allocations: 0 / 273.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of Templates: time 0.01002/0.03368, allocations: 8.264 MB / 282 MB, free: 8.434 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] 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","",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.9734365409240127]