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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00185/0.003112, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001633/0.002747, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9339/0.9339, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.163/1.097, allocations: 52.49 MB / 238.5 MB, free: 7.602 MB / 234.7 MB " [Timeout remaining time 179] 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=5010,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=5010,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.62e-07/8.62e-07, allocations: 0 / 239.7 MB, free: 6.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.326e-06/9.188e-06, allocations: 4.703 kB / 239.8 MB, free: 6.328 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002008/0.002017, allocations: 2.089 MB / 241.8 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.003472, allocations: 1.047 MB / 242.9 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.711e-05/0.003529, allocations: 9.031 kB / 242.9 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.112e-05/0.00361, allocations: 43.59 kB / 242.9 MB, free: 3.141 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.496e-05/0.003685, allocations: 58.64 kB / 243 MB, free: 3.086 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.0039, allocations: 127.7 kB / 243.1 MB, free: 2.961 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004381/0.004338, allocations: 407 kB / 243.5 MB, free: 2.562 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.004456, allocations: 66.28 kB / 243.6 MB, free: 2.492 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006539/0.00511, allocations: 0.9793 MB / 244.6 MB, free: 1.512 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.00527, allocations: 179.5 kB / 244.7 MB, free: 1.336 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.334e-05/0.005323, allocations: 33.28 kB / 244.8 MB, free: 1.305 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.864e-05/0.005372, allocations: 36 kB / 244.8 MB, free: 1.27 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.262e-05/0.005465, allocations: 151.5 kB / 245 MB, free: 1.121 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.794e-05/0.005563, allocations: 116.6 kB / 245.1 MB, free: 1.004 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003887/0.005951, allocations: 0.6228 MB / 245.7 MB, free: 388 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.005959, allocations: 0 / 245.7 MB, free: 388 kB / 234.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.005959, allocations: 3 kB / 245.7 MB, free: 388 kB / 234.7 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.005969, allocations: 0 / 245.7 MB, free: 388 kB / 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.0007151/0.006684, allocations: 1.118 MB / 246.8 MB, free: 15.21 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.437e-05/0.006708, allocations: 8.031 kB / 246.8 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.54e-05/0.006784, allocations: 64.88 kB / 246.9 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.007018, allocations: 342.2 kB / 247.2 MB, free: 14.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.007039, allocations: 16.38 kB / 247.2 MB, free: 14.76 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.007071, allocations: 20.38 kB / 247.3 MB, free: 14.74 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.007389, allocations: 338.3 kB / 247.6 MB, free: 14.38 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.007397, allocations: 9.094 kB / 247.6 MB, free: 14.37 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.00742, allocations: 9.875 kB / 247.6 MB, free: 14.36 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.007424, allocations: 4 kB / 247.6 MB, free: 14.36 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.007579, allocations: 207.6 kB / 247.8 MB, free: 14.13 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000522/0.008101, allocations: 491.8 kB / 248.3 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.00829, allocations: 225.3 kB / 248.5 MB, free: 13.38 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.008405, allocations: 200.2 kB / 248.7 MB, free: 13.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.008418, allocations: 4.688 kB / 248.7 MB, free: 13.15 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.008674, allocations: 458.6 kB / 249.2 MB, free: 12.64 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 9.11e-07/0.008675, allocations: 0 / 249.2 MB, free: 12.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004859/0.009161, allocations: 0.6749 MB / 249.8 MB, free: 11.89 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.009265, allocations: 313 kB / 250.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006414/0.009907, allocations: 0.6612 MB / 250.8 MB, free: 10.85 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.009938, allocations: 33.7 kB / 250.8 MB, free: 10.81 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.00999, allocations: 130.4 kB / 251 MB, free: 10.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.01004, allocations: 63.5 kB / 251 MB, free: 10.62 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.01015, allocations: 141.9 kB / 251.2 MB, free: 10.47 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.625e-05/0.01023, allocations: 347.3 kB / 251.5 MB, free: 10.12 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.01034, allocations: 186.8 kB / 251.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.01047, allocations: 232.1 kB / 251.9 MB, free: 9.652 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.01072, allocations: 434 kB / 252.3 MB, free: 9.164 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01072, allocations: 0 / 252.3 MB, free: 9.164 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000306/0.01102, allocations: 476.2 kB / 252.8 MB, free: 8.645 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.105e-05/0.01109, allocations: 135.8 kB / 252.9 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.01109, allocations: 0 / 252.9 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.518e-06/0.0111, allocations: 4 kB / 252.9 MB, free: 8.484 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.973e-05/0.01115, allocations: 12.98 kB / 252.9 MB, free: 8.473 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-06/0.01115, allocations: 3.938 kB / 253 MB, free: 8.469 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.881e-05/0.01125, allocations: 28.62 kB / 253 MB, free: 8.441 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.677e-05/0.01132, allocations: 95.94 kB / 253.1 MB, free: 8.348 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.0003383/0.01166, allocations: 0.4928 MB / 253.6 MB, free: 7.824 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/0.01172, allocations: 63.94 kB / 253.6 MB, free: 7.762 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.01185, allocations: 106.5 kB / 253.7 MB, free: 7.648 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.01186, allocations: 64 / 253.7 MB, free: 7.648 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-06/0.01186, allocations: 8 kB / 253.7 MB, free: 7.641 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.01186, allocations: 0 / 253.7 MB, free: 7.641 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.01212, allocations: 309.3 kB / 254 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.01212, allocations: 0 / 254 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.942e-05/0.01215, allocations: 11.98 kB / 254.1 MB, free: 7.309 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.01246, allocations: 289.2 kB / 254.3 MB, free: 7.016 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.01246, allocations: 0 / 254.3 MB, free: 7.016 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.01249, allocations: 15.98 kB / 254.4 MB, free: 7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.01249, allocations: 0 / 254.4 MB, free: 7 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01249, allocations: 0 / 254.4 MB, free: 7 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003638/0.01285, allocations: 0.5679 MB / 254.9 MB, free: 6.367 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.162e-05/0.0129, allocations: 20.12 kB / 254.9 MB, free: 6.348 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.342e-05/0.01298, allocations: 19.98 kB / 255 MB, free: 6.328 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.087e-05/0.01305, allocations: 35.95 kB / 255 MB, free: 6.293 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.249e-05/0.01311, allocations: 103.9 kB / 255.1 MB, free: 6.191 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002559/0.01337, allocations: 316.3 kB / 255.4 MB, free: 5.883 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01337, allocations: 0 / 255.4 MB, free: 5.883 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001751/0.01354, allocations: 91.89 kB / 255.5 MB, free: 5.793 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.0001005/0.01364, allocations: 116.5 kB / 255.6 MB, free: 5.676 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003993/0.01404, allocations: 0.7029 MB / 256.3 MB, free: 4.871 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.01405, allocations: 8 kB / 256.3 MB, free: 4.863 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.01429, allocations: 488.2 kB / 256.8 MB, free: 4.309 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006516/0.01494, allocations: 0.732 MB / 257.5 MB, free: 3.48 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.01625, allocations: 1.386 MB / 258.9 MB, free: 2.035 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.514e-05/0.01634, allocations: 151.8 kB / 259.1 MB, free: 1.867 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001901/0.01653, allocations: 165 kB / 259.2 MB, free: 1.707 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.0169, allocations: 243.2 kB / 259.5 MB, free: 1.469 MB / 250.7 MB Notification: Performance of SimCode: time 7.41e-07/0.0169, allocations: 0 / 259.5 MB, free: 1.469 MB / 250.7 MB Notification: Performance of Templates: time 0.008699/0.0256, allocations: 8.096 MB / 267.6 MB, free: 9.516 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.564819172024727]