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.001295/0.001295, allocations: 114 kB / 20.43 MB, free: 1.457 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.001466/0.001466, allocations: 212.6 kB / 23.74 MB, free: 4.672 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.458/1.458, allocations: 230.5 MB / 257.4 MB, free: 7.992 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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 59.91 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2821, allocations: 53.4 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003361/0.2854, allocations: 2.138 MB / 433.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.2877, allocations: 1.068 MB / 434.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.2878, allocations: 11.94 kB / 434.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.288, allocations: 35.66 kB / 434.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.2881, allocations: 55.52 kB / 434.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.2885, allocations: 131.8 kB / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.2889, allocations: 395.1 kB / 435 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.2891, allocations: 71.55 kB / 435.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.2901, allocations: 0.9708 MB / 436 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.2904, allocations: 211.2 kB / 436.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.397e-05/0.2905, allocations: 32 kB / 436.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.862e-05/0.2906, allocations: 36 kB / 436.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2907, allocations: 163.3 kB / 436.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000278/0.291, allocations: 282.1 kB / 436.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000999/0.292, allocations: 0.9848 MB / 437.7 MB, free: 100 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.292, allocations: 0 / 437.7 MB, free: 100 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.292, allocations: 0 / 437.7 MB, free: 100 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.292, allocations: 0 / 437.7 MB, free: 100 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.00132/0.2933, allocations: 1.07 MB / 438.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2934, allocations: 16.03 kB / 438.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.492e-05/0.2935, allocations: 54.73 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.2936, allocations: 84.42 kB / 439 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.2941, allocations: 371 kB / 439.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.184e-05/0.2941, allocations: 12.38 kB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.2942, allocations: 24.38 kB / 439.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000614/0.2948, allocations: 301.3 kB / 439.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2948, allocations: 0 / 439.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.89e-05/0.2948, allocations: 12 kB / 439.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.2949, allocations: 4 kB / 439.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004505/0.2953, allocations: 211.8 kB / 439.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.2967, allocations: 0.8465 MB / 440.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004288/0.2971, allocations: 178.4 kB / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.2974, allocations: 116.8 kB / 441 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.2974, allocations: 0 / 441 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006429/0.298, allocations: 393.1 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.293e-06/0.298, allocations: 0 / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001369/0.2994, allocations: 0.7339 MB / 442.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.2996, allocations: 178.2 kB / 442.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.3009, allocations: 1.004 MB / 443.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.3009, allocations: 37.7 kB / 443.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3011, allocations: 165.9 kB / 443.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.516e-05/0.3011, allocations: 59.53 kB / 443.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.3014, allocations: 161.3 kB / 443.7 MB, free: 9.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3015, allocations: 342.8 kB / 444 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.3018, allocations: 123.9 kB / 444.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.3021, allocations: 157 kB / 444.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006092/0.3027, allocations: 481.7 kB / 444.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3027, allocations: 0 / 444.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009399/0.3036, allocations: 0.5782 MB / 445.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.3037, allocations: 134.8 kB / 445.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3037, allocations: 0 / 445.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.3038, allocations: 4 kB / 445.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.749e-05/0.3038, allocations: 16 kB / 445.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.3039, allocations: 8 kB / 445.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.3041, allocations: 23.88 kB / 445.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.3042, allocations: 115.9 kB / 445.7 MB, free: 7.723 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.0006427/0.3048, allocations: 0.5262 MB / 446.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.305, allocations: 83.53 kB / 446.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/0.3052, allocations: 126.5 kB / 446.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3052, allocations: 0 / 446.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3052, allocations: 0 / 446.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3052, allocations: 4 kB / 446.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007483/0.3059, allocations: 0.6015 MB / 447 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.3059, allocations: 4 kB / 447 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.306, allocations: 8 kB / 447 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.306, allocations: 0 / 447 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.947e-05/0.306, allocations: 27.98 kB / 447 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.306, allocations: 7.969 kB / 447.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.306, allocations: 4 kB / 447.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.3071, allocations: 0.6989 MB / 447.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008446/0.308, allocations: 0.5045 MB / 448.3 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.976e-05/0.3081, allocations: 27.98 kB / 448.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.3082, allocations: 15.98 kB / 448.3 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.3084, allocations: 51.95 kB / 448.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.3085, allocations: 115.9 kB / 448.5 MB, free: 4.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009856/0.3095, allocations: 0.7251 MB / 449.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3095, allocations: 192 / 449.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.3098, allocations: 88 kB / 449.3 MB, free: 3.988 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.001531/0.3114, allocations: 1.293 MB / 450.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008893/0.3123, allocations: 0.5404 MB / 451.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3123, allocations: 0 / 451.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.3128, allocations: 401.5 kB / 451.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008243/0.3136, allocations: 205.3 kB / 451.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0069/0.3205, allocations: 4.528 MB / 456.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008266/0.3213, allocations: 0.9636 MB / 457.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003837/0.3217, allocations: 161.1 kB / 457.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002587/0.322, allocations: 135.2 kB / 457.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.322, allocations: 0 / 457.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03941/0.3614, allocations: 10.53 MB / 468 MB, free: 1.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.72, allocations: 4.062 kB / 468 MB, free: 1.043 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] 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: 14.217007477069274]