Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 105.1 kB / 21.18 MB, free: 0.7656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.001479, allocations: 213.7 kB / 24.49 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.5 MB / 258.1 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 59.89 kB / 379 MB, free: 2.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3449, allocations: 53.4 MB / 432.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003456/0.3484, allocations: 2.145 MB / 434.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.3509, allocations: 1.064 MB / 435.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.351, allocations: 7.938 kB / 435.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.3513, allocations: 39.64 kB / 435.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001355/0.3514, allocations: 51.53 kB / 435.7 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004698/0.3519, allocations: 131.8 kB / 435.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005544/0.3524, allocations: 399.1 kB / 436.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.3526, allocations: 67.55 kB / 436.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.3538, allocations: 0.9747 MB / 437.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.3541, allocations: 211.2 kB / 437.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.579e-05/0.3542, allocations: 32 kB / 437.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.893e-05/0.3543, allocations: 36 kB / 437.6 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.3544, allocations: 163.3 kB / 437.7 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002898/0.3547, allocations: 286.1 kB / 438 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.3557, allocations: 0.9856 MB / 439 MB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3557, allocations: 0 / 439 MB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3557, allocations: 0 / 439 MB, free: 188 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.3558, allocations: 0 / 439 MB, free: 188 kB / 334.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.001407/0.3572, allocations: 1.071 MB / 440.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3572, allocations: 12.03 kB / 440.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.3573, allocations: 88.36 kB / 440.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.3579, allocations: 363 kB / 440.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.917e-05/0.3579, allocations: 20.36 kB / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.948e-05/0.358, allocations: 20.38 kB / 440.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006383/0.3586, allocations: 301.5 kB / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3586, allocations: 0 / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.392e-05/0.3587, allocations: 12 kB / 440.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.3587, allocations: 4 kB / 440.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004416/0.3591, allocations: 215.8 kB / 441.1 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.3605, allocations: 0.8465 MB / 441.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.361, allocations: 182.4 kB / 442.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.3612, allocations: 116.8 kB / 442.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.3613, allocations: 4 kB / 442.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000667/0.3619, allocations: 385.1 kB / 442.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.3619, allocations: 0 / 442.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001389/0.3633, allocations: 0.7379 MB / 443.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.3635, allocations: 174.2 kB / 443.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.3648, allocations: 1 MB / 444.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.3648, allocations: 33.7 kB / 444.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.365, allocations: 165.9 kB / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.3651, allocations: 59.47 kB / 444.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000221/0.3653, allocations: 165.3 kB / 444.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3655, allocations: 342.8 kB / 445.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.3657, allocations: 119.9 kB / 445.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.366, allocations: 161 kB / 445.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006229/0.3667, allocations: 473.7 kB / 446 MB, free: 8.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3667, allocations: 4 kB / 446 MB, free: 8.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009859/0.3677, allocations: 0.5782 MB / 446.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.3678, allocations: 136.9 kB / 446.7 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3678, allocations: 4 kB / 446.7 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3678, allocations: 0 / 446.7 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.168e-05/0.3679, allocations: 23.98 kB / 446.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3679, allocations: 0 / 446.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.3681, allocations: 27.94 kB / 446.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.3682, allocations: 103.9 kB / 446.9 MB, free: 7.887 MB / 350.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.0006462/0.3689, allocations: 0.5379 MB / 447.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.369, allocations: 87.64 kB / 447.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.3692, allocations: 130.5 kB / 447.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3692, allocations: 4 kB / 447.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3692, allocations: 0 / 447.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3692, allocations: 0 / 447.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007456/0.3699, allocations: 0.5975 MB / 448.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3699, allocations: 0 / 448.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.15e-05/0.37, allocations: 19.92 kB / 448.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.37, allocations: 0 / 448.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-05/0.37, allocations: 27.98 kB / 448.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.37, allocations: 4 kB / 448.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.37, allocations: 0 / 448.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.3711, allocations: 0.7067 MB / 449 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008564/0.372, allocations: 0.4891 MB / 449.5 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.3721, allocations: 20 kB / 449.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.3723, allocations: 19.98 kB / 449.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.3724, allocations: 55.83 kB / 449.6 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/0.3726, allocations: 115.9 kB / 449.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001034/0.3736, allocations: 0.7329 MB / 450.4 MB, free: 4.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3736, allocations: 0 / 450.4 MB, free: 4.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003651/0.374, allocations: 87.94 kB / 450.5 MB, free: 4.137 MB / 350.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.0001863/0.3742, allocations: 134.7 kB / 450.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008711/0.3751, allocations: 0.5404 MB / 451.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3751, allocations: 0 / 451.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.3755, allocations: 397.5 kB / 451.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008068/0.3763, allocations: 207.1 kB / 451.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.3786, allocations: 1.411 MB / 453.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007229/0.3793, allocations: 0.9636 MB / 454.1 MB, free: 356 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.3795, allocations: 103.2 kB / 454.2 MB, free: 252 kB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3795, allocations: 0 / 454.2 MB, free: 252 kB / 350.1 MB Notification: Performance of Templates: time 0.008462/0.388, allocations: 5.401 MB / 459.6 MB, free: 10.81 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.156965577974916]