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.001404/0.001404, allocations: 84.3 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001465/0.001465, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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 1.478/1.478, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.673e-06/1.673e-06, allocations: 0.7969 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.25e-05/2.418e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003391/0.003415, allocations: 2.005 MB / 327.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002482/0.005898, allocations: 1.022 MB / 328.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.006068, allocations: 6.312 kB / 328.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.006267, allocations: 37.72 kB / 328.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.006446, allocations: 60.05 kB / 328.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/0.00693, allocations: 132.7 kB / 328.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006122/0.007542, allocations: 401.1 kB / 328.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.007743, allocations: 68.22 kB / 328.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001418/0.009161, allocations: 1.025 MB / 329.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003466/0.009507, allocations: 180.7 kB / 330 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.922e-05/0.009606, allocations: 34.31 kB / 330 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.131e-05/0.009698, allocations: 34.06 kB / 330.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.009902, allocations: 171.2 kB / 330.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002265/0.01013, allocations: 140.9 kB / 330.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.0112, allocations: 0.9828 MB / 331.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.01121, allocations: 5.156 kB / 331.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01121, allocations: 0 / 331.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.01122, allocations: 0 / 331.4 MB, free: 12.93 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.001432/0.01265, allocations: 1.066 MB / 332.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.01268, allocations: 8.75 kB / 332.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.01283, allocations: 84.2 kB / 332.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005263/0.01335, allocations: 369.8 kB / 332.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/0.0134, allocations: 22.17 kB / 332.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.841e-05/0.01346, allocations: 24.11 kB / 332.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007652/0.01422, allocations: 432.8 kB / 333.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.01423, allocations: 4.188 kB / 333.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/0.01428, allocations: 10.31 kB / 333.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.01429, allocations: 7.062 kB / 333.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005593/0.01485, allocations: 342 kB / 333.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.01617, allocations: 0.7555 MB / 334.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.01672, allocations: 302.3 kB / 334.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.01709, allocations: 247.2 kB / 335 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.01712, allocations: 4.984 kB / 335 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007057/0.01782, allocations: 0.5137 MB / 335.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.01783, allocations: 0 / 335.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001677/0.0195, allocations: 1.004 MB / 336.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.01963, allocations: 170.9 kB / 336.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/0.02106, allocations: 1.002 MB / 337.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.02111, allocations: 39.45 kB / 337.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.02125, allocations: 159.5 kB / 337.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.651e-05/0.02134, allocations: 59.05 kB / 337.9 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002758/0.02162, allocations: 165.2 kB / 338.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.02179, allocations: 338.8 kB / 338.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.02218, allocations: 254.8 kB / 338.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/0.02261, allocations: 299 kB / 339 MB, free: 6.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007233/0.02333, allocations: 497.6 kB / 339.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.02333, allocations: 0 / 339.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001203/0.02454, allocations: 0.7293 MB / 340.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.02467, allocations: 138.8 kB / 340.3 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.02468, allocations: 128 / 340.3 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.0247, allocations: 8 kB / 340.3 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.493e-05/0.02479, allocations: 19.98 kB / 340.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.0248, allocations: 4 kB / 340.3 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.02504, allocations: 27.88 kB / 340.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.02518, allocations: 107.9 kB / 340.5 MB, free: 5.09 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.0006866/0.02587, allocations: 0.5302 MB / 341 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.02599, allocations: 87.41 kB / 341.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.02621, allocations: 142.5 kB / 341.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.02621, allocations: 0 / 341.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.02622, allocations: 0 / 341.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.02622, allocations: 0 / 341.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007178/0.02694, allocations: 0.4929 MB / 341.7 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.02694, allocations: 0 / 341.7 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.114e-05/0.02699, allocations: 12 kB / 341.7 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.02699, allocations: 3.938 kB / 341.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.02705, allocations: 27.98 kB / 341.8 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.02705, allocations: 0 / 341.8 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.02705, allocations: 0 / 341.8 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.02837, allocations: 0.8456 MB / 342.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008573/0.02923, allocations: 0.4968 MB / 343.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.02936, allocations: 27.94 kB / 343.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.02955, allocations: 15.98 kB / 343.2 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.02972, allocations: 51.95 kB / 343.2 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/0.02987, allocations: 115.9 kB / 343.3 MB, free: 2.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001071/0.03094, allocations: 0.7328 MB / 344 MB, free: 1.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.03094, allocations: 0 / 344 MB, free: 1.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000376/0.03132, allocations: 87.94 kB / 344.1 MB, free: 1.277 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.0001924/0.03151, allocations: 131.2 kB / 344.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.03266, allocations: 0.8261 MB / 345.1 MB, free: 224 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.03267, allocations: 0 / 345.1 MB, free: 224 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006719/0.03334, allocations: 0.5276 MB / 345.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008987/0.03424, allocations: 196.5 kB / 345.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.03669, allocations: 1.47 MB / 347.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005938/0.03729, allocations: 381.3 kB / 347.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000359/0.03764, allocations: 157.1 kB / 347.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.03783, allocations: 76.34 kB / 347.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of SimCode: time 1.011e-06/0.03784, allocations: 3.938 kB / 347.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of Templates: time 0.01545/0.05329, allocations: 8.29 MB / 356.2 MB, free: 5.121 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.514557156711817]