Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001574/0.001574, allocations: 113 kB / 21.18 MB, free: 0.5898 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.001796/0.001796, allocations: 209.7 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.471/1.471, allocations: 230.4 MB / 258.1 MB, free: 8.156 MB / 206.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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 71.83 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2797, allocations: 53.31 MB / 432 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003683/0.2834, allocations: 2.146 MB / 434.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.2857, allocations: 1.06 MB / 435.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2858, allocations: 7.938 kB / 435.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001836/0.286, allocations: 35.66 kB / 435.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.2861, allocations: 55.56 kB / 435.3 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.2866, allocations: 123.8 kB / 435.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/0.2871, allocations: 395.1 kB / 435.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.2872, allocations: 63.08 kB / 435.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.2883, allocations: 0.9708 MB / 436.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.2885, allocations: 207.2 kB / 437.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.793e-05/0.2886, allocations: 32 kB / 437.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.789e-05/0.2887, allocations: 36 kB / 437.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.2889, allocations: 171.2 kB / 437.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002579/0.2891, allocations: 274.1 kB / 437.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009397/0.2901, allocations: 0.9863 MB / 438.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2901, allocations: 0 / 438.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2901, allocations: 0 / 438.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.2901, allocations: 0 / 438.6 MB, free: 0.8438 MB / 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.00135/0.2914, allocations: 1.146 MB / 439.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.2915, allocations: 8.031 kB / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.2916, allocations: 84.42 kB / 439.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005705/0.2922, allocations: 444.7 kB / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.2922, allocations: 16.38 kB / 440.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.504e-05/0.2923, allocations: 20.38 kB / 440.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006175/0.2929, allocations: 309.4 kB / 440.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.2929, allocations: 4 kB / 440.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.2929, allocations: 8 kB / 440.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2929, allocations: 4 kB / 440.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000443/0.2934, allocations: 207.9 kB / 440.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.2948, allocations: 0.8941 MB / 441.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004293/0.2952, allocations: 174.5 kB / 441.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/0.2955, allocations: 116.8 kB / 442 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.2955, allocations: 0 / 442 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000619/0.2961, allocations: 394.1 kB / 442.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.2961, allocations: 0 / 442.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00138/0.2975, allocations: 0.7412 MB / 443.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.2976, allocations: 178.2 kB / 443.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/0.2989, allocations: 0.9961 MB / 444.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.789e-05/0.299, allocations: 37.7 kB / 444.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.2991, allocations: 157.9 kB / 444.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.205e-05/0.2992, allocations: 59.58 kB / 444.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/0.2994, allocations: 173.3 kB / 444.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2996, allocations: 338.8 kB / 445 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/0.2999, allocations: 119.9 kB / 445.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.3002, allocations: 172.7 kB / 445.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.3008, allocations: 477.8 kB / 445.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3008, allocations: 0 / 445.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009863/0.3018, allocations: 0.5743 MB / 446.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.3019, allocations: 130.8 kB / 446.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.3019, allocations: 11.92 kB / 446.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.302, allocations: 0 / 446.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.855e-05/0.302, allocations: 16.06 kB / 446.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.3021, allocations: 0 / 446.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.3023, allocations: 27.94 kB / 446.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.3024, allocations: 115.9 kB / 446.6 MB, free: 8.305 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.0006182/0.303, allocations: 0.5375 MB / 447.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.3031, allocations: 83.66 kB / 447.3 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.3033, allocations: 130.4 kB / 447.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3033, allocations: 4 kB / 447.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.3033, allocations: 4.094 kB / 447.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3033, allocations: 3.938 kB / 447.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007477/0.3041, allocations: 0.6258 MB / 448 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3041, allocations: 4 kB / 448 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.434e-05/0.3041, allocations: 8.047 kB / 448 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3041, allocations: 3.984 kB / 448 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.382e-05/0.3042, allocations: 23.98 kB / 448.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3042, allocations: 4 kB / 448.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3042, allocations: 0 / 448.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.3053, allocations: 0.71 MB / 448.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007234/0.306, allocations: 0.4961 MB / 449.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.3061, allocations: 20 kB / 449.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.3063, allocations: 15.98 kB / 449.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.3065, allocations: 51.95 kB / 449.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.3066, allocations: 119.9 kB / 449.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009602/0.3075, allocations: 0.729 MB / 450.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3075, allocations: 0 / 450.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003605/0.3079, allocations: 87.94 kB / 450.3 MB, free: 4.512 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.000182/0.3081, allocations: 130.8 kB / 450.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008999/0.309, allocations: 0.552 MB / 451 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.309, allocations: 0 / 451 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004853/0.3095, allocations: 393.5 kB / 451.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008603/0.3103, allocations: 201.6 kB / 451.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.3126, allocations: 1.423 MB / 453 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007054/0.3133, allocations: 0.9597 MB / 453.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.3135, allocations: 95.23 kB / 454 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3135, allocations: 0 / 454 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of Templates: time 0.008443/0.3219, allocations: 5.445 MB / 459.5 MB, free: 11.14 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.077675193082541]