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.008237/0.008237, allocations: 107.5 kB / 21.98 MB, free: 5.223 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.002107/0.002107, allocations: 216.4 kB / 25.29 MB, free: 3.203 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.499/1.499, allocations: 230.6 MB / 259 MB, free: 8.027 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.00196/0.00196, allocations: 59.91 kB / 379.8 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.251, allocations: 53.36 MB / 433.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003769/0.2547, allocations: 2.142 MB / 435.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.2571, allocations: 1.064 MB / 436.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.2573, allocations: 7.938 kB / 436.4 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.2574, allocations: 35.64 kB / 436.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.2576, allocations: 59.53 kB / 436.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.258, allocations: 131.8 kB / 436.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005281/0.2585, allocations: 391.1 kB / 437 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.2587, allocations: 71.53 kB / 437.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.2598, allocations: 0.9709 MB / 438 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.2601, allocations: 203.2 kB / 438.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.2602, allocations: 36 kB / 438.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.064e-05/0.2603, allocations: 36 kB / 438.3 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.2605, allocations: 163.3 kB / 438.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002991/0.2608, allocations: 290.1 kB / 438.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.2618, allocations: 0.9895 MB / 439.7 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2618, allocations: 0 / 439.7 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2618, allocations: 0 / 439.7 MB, free: 368 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.2618, allocations: 0 / 439.7 MB, free: 368 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.001451/0.2633, allocations: 1.066 MB / 440.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.2633, allocations: 11.97 kB / 440.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.2634, allocations: 84.42 kB / 440.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005349/0.264, allocations: 367 kB / 441.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.264, allocations: 24.38 kB / 441.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.634e-05/0.2641, allocations: 16.38 kB / 441.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006383/0.2647, allocations: 305.5 kB / 441.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.2647, allocations: 0 / 441.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/0.2648, allocations: 8 kB / 441.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.2648, allocations: 4 kB / 441.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004586/0.2652, allocations: 203.9 kB / 441.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.2666, allocations: 0.8581 MB / 442.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004408/0.2671, allocations: 178.4 kB / 442.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.2673, allocations: 123.5 kB / 442.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.2674, allocations: 0 / 442.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006227/0.268, allocations: 382.1 kB / 443.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.704e-06/0.268, allocations: 4 kB / 443.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001376/0.2694, allocations: 0.7425 MB / 444.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.2695, allocations: 174.2 kB / 444.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.2708, allocations: 0.9961 MB / 445.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.781e-05/0.2709, allocations: 37.7 kB / 445.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.271, allocations: 161.8 kB / 445.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/0.2711, allocations: 59.53 kB / 445.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002214/0.2713, allocations: 165.3 kB / 445.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.2715, allocations: 342.8 kB / 446 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/0.2718, allocations: 123.9 kB / 446.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.2721, allocations: 161 kB / 446.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006271/0.2727, allocations: 477.7 kB / 446.7 MB, free: 8.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.2727, allocations: 4 kB / 446.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009939/0.2737, allocations: 0.5743 MB / 447.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.2738, allocations: 134.8 kB / 447.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2739, allocations: 3.984 kB / 447.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.2739, allocations: 4 kB / 447.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.295e-05/0.274, allocations: 19.98 kB / 447.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.274, allocations: 3.938 kB / 447.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.2742, allocations: 24 kB / 447.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.2743, allocations: 116 kB / 447.6 MB, free: 8.055 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.0006425/0.275, allocations: 0.5301 MB / 448.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.2751, allocations: 83.52 kB / 448.2 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002255/0.2753, allocations: 126.5 kB / 448.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2753, allocations: 4 kB / 448.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.2753, allocations: 4 kB / 448.3 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2753, allocations: 0 / 448.3 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007921/0.2761, allocations: 0.5975 MB / 448.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2761, allocations: 0 / 448.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.84e-05/0.2762, allocations: 15.92 kB / 449 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2762, allocations: 0 / 449 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-05/0.2762, allocations: 31.97 kB / 449 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2762, allocations: 0 / 449 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.2762, allocations: 0 / 449 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.2774, allocations: 0.7097 MB / 449.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009192/0.2783, allocations: 0.4968 MB / 450.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.2784, allocations: 24 kB / 450.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.2786, allocations: 19.92 kB / 450.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.2788, allocations: 47.95 kB / 450.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.2789, allocations: 119.8 kB / 450.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.2799, allocations: 0.7251 MB / 451.1 MB, free: 4.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2799, allocations: 4.188 kB / 451.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00039/0.2803, allocations: 84 kB / 451.2 MB, free: 4.32 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.0001781/0.2805, allocations: 142.7 kB / 451.4 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009429/0.2815, allocations: 0.5443 MB / 451.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2815, allocations: 128 / 451.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005119/0.282, allocations: 401.5 kB / 452.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008024/0.2828, allocations: 197.7 kB / 452.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.2852, allocations: 1.407 MB / 453.9 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007779/0.286, allocations: 0.9637 MB / 454.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.2862, allocations: 95.22 kB / 454.9 MB, free: 440 kB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2862, allocations: 0 / 454.9 MB, free: 440 kB / 350.1 MB Notification: Performance of Templates: time 0.009012/0.2952, allocations: 5.416 MB / 460.4 MB, free: 10.98 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/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_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.111486291047186]