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.001318/0.001318, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.001553/0.001553, allocations: 168.1 kB / 25.69 MB, free: 8.449 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 0.8714/0.8714, allocations: 158.6 MB / 187.6 MB, free: 2.781 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.753e-06/1.753e-06, allocations: 0 / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.924e-05/2.099e-05, allocations: 2.312 kB / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002754/0.002775, allocations: 2.057 MB / 253.6 MB, free: 5.207 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.004601, allocations: 1.045 MB / 254.6 MB, free: 4.152 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.004703, allocations: 7.938 kB / 254.6 MB, free: 4.145 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001974/0.004901, allocations: 35.64 kB / 254.7 MB, free: 4.109 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.005053, allocations: 59.53 kB / 254.7 MB, free: 4.051 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.00544, allocations: 135.7 kB / 254.9 MB, free: 3.918 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003249/0.005764, allocations: 395 kB / 255.3 MB, free: 3.531 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.00592, allocations: 78.19 kB / 255.3 MB, free: 3.453 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006513/0.006571, allocations: 0.9397 MB / 256.3 MB, free: 2.508 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.006739, allocations: 171.5 kB / 256.4 MB, free: 2.34 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/0.006797, allocations: 36 kB / 256.5 MB, free: 2.305 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.76e-05/0.006844, allocations: 36 kB / 256.5 MB, free: 2.27 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.00696, allocations: 171.3 kB / 256.7 MB, free: 2.102 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.007074, allocations: 139.5 kB / 256.8 MB, free: 1.965 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004398/0.007514, allocations: 0.6618 MB / 257.5 MB, free: 1.301 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.007517, allocations: 0 / 257.5 MB, free: 1.301 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.007518, allocations: 0 / 257.5 MB, free: 1.301 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.007523, allocations: 0 / 257.5 MB, free: 1.301 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.000766/0.008289, allocations: 1.014 MB / 258.5 MB, free: 240 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.008319, allocations: 11.98 kB / 258.5 MB, free: 228 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.896e-05/0.008398, allocations: 68.88 kB / 258.6 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.008693, allocations: 350.2 kB / 258.9 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.008718, allocations: 20.25 kB / 258.9 MB, free: 15.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.375e-05/0.008752, allocations: 20.38 kB / 258.9 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000343/0.009095, allocations: 349.2 kB / 259.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.009103, allocations: 192 / 259.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.009128, allocations: 12.38 kB / 259.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.009134, allocations: 3.938 kB / 259.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.009288, allocations: 198.8 kB / 259.5 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006591/0.009947, allocations: 474.3 kB / 260 MB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.01017, allocations: 229.2 kB / 260.2 MB, free: 14.4 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.01028, allocations: 187.6 kB / 260.4 MB, free: 14.19 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.0103, allocations: 4 kB / 260.4 MB, free: 14.18 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.01057, allocations: 440.7 kB / 260.8 MB, free: 13.69 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.343e-06/0.01057, allocations: 96 / 260.8 MB, free: 13.69 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005875/0.01116, allocations: 0.6656 MB / 261.5 MB, free: 12.95 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.01122, allocations: 174.2 kB / 261.6 MB, free: 12.74 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004903/0.01171, allocations: 0.6559 MB / 262.3 MB, free: 12.07 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.01174, allocations: 37.7 kB / 262.3 MB, free: 12.03 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.311e-05/0.01179, allocations: 134.4 kB / 262.5 MB, free: 11.89 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.84e-05/0.01184, allocations: 63.5 kB / 262.5 MB, free: 11.83 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.01196, allocations: 137.3 kB / 262.7 MB, free: 11.69 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.01205, allocations: 342.8 kB / 263 MB, free: 11.35 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.01217, allocations: 178.8 kB / 263.2 MB, free: 11.15 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.01231, allocations: 223 kB / 263.4 MB, free: 10.89 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.01255, allocations: 404.5 kB / 263.8 MB, free: 10.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.01256, allocations: 7.938 kB / 263.8 MB, free: 10.42 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003089/0.01287, allocations: 451 kB / 264.2 MB, free: 9.926 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/0.01293, allocations: 142.7 kB / 264.4 MB, free: 9.762 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.01294, allocations: 0 / 264.4 MB, free: 9.762 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.01295, allocations: 4 kB / 264.4 MB, free: 9.758 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.287e-05/0.01299, allocations: 11.92 kB / 264.4 MB, free: 9.746 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.013, allocations: 4 kB / 264.4 MB, free: 9.742 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.0131, allocations: 19.95 kB / 264.4 MB, free: 9.723 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.199e-05/0.01317, allocations: 103.9 kB / 264.5 MB, free: 9.621 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.0006231/0.01379, allocations: 497.8 kB / 265 MB, free: 9.102 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.01385, allocations: 67.92 kB / 265.1 MB, free: 9.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.01398, allocations: 110.4 kB / 265.2 MB, free: 8.926 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.01399, allocations: 0 / 265.2 MB, free: 8.926 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.01399, allocations: 0 / 265.2 MB, free: 8.926 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.01399, allocations: 3.984 kB / 265.2 MB, free: 8.922 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.01428, allocations: 313.3 kB / 265.5 MB, free: 8.598 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01428, allocations: 0 / 265.5 MB, free: 8.598 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.382e-05/0.0143, allocations: 7.984 kB / 265.5 MB, free: 8.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.01431, allocations: 4 kB / 265.5 MB, free: 8.586 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.01433, allocations: 15.98 kB / 265.5 MB, free: 8.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.01433, allocations: 128 / 265.5 MB, free: 8.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.01433, allocations: 7.938 kB / 265.5 MB, free: 8.562 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003636/0.0147, allocations: 0.5495 MB / 266.1 MB, free: 7.945 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000336/0.01503, allocations: 285.2 kB / 266.3 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.526e-05/0.01509, allocations: 28 kB / 266.4 MB, free: 7.625 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.013e-05/0.01517, allocations: 23.97 kB / 266.4 MB, free: 7.602 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.386e-05/0.01524, allocations: 27.91 kB / 266.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-05/0.01531, allocations: 103.9 kB / 266.5 MB, free: 7.473 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002791/0.01559, allocations: 316.3 kB / 266.8 MB, free: 7.168 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01559, allocations: 0 / 266.8 MB, free: 7.168 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001834/0.01577, allocations: 91.89 kB / 266.9 MB, free: 7.078 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.000124/0.0159, allocations: 124.3 kB / 267 MB, free: 6.949 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004148/0.01631, allocations: 0.6797 MB / 267.7 MB, free: 6.168 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.443e-06/0.01632, allocations: 8 kB / 267.7 MB, free: 6.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.01657, allocations: 483.9 kB / 268.2 MB, free: 5.609 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.01696, allocations: 222.6 kB / 268.4 MB, free: 5.398 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.01817, allocations: 1.358 MB / 269.8 MB, free: 3.984 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.01827, allocations: 143.8 kB / 269.9 MB, free: 3.824 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.01847, allocations: 161.1 kB / 270.1 MB, free: 3.664 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003751/0.01885, allocations: 251.1 kB / 270.3 MB, free: 3.418 MB / 250.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01885, allocations: 0 / 270.3 MB, free: 3.418 MB / 250.7 MB Notification: Performance of Templates: time 0.008628/0.02748, allocations: 8.018 MB / 278.3 MB, free: 11.43 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.6833723839372396]