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.001404/0.001404, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001431/0.001431, allocations: 209.4 kB / 24.47 MB, free: 4.023 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.482/1.482, 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.002043/0.002043, allocations: 76.06 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2814, allocations: 53.31 MB / 432 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003555/0.2849, allocations: 2.142 MB / 434.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.2873, allocations: 1.052 MB / 435.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.2874, allocations: 4 kB / 435.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.2876, allocations: 43.58 kB / 435.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.2877, allocations: 55.58 kB / 435.3 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.2881, allocations: 119.8 kB / 435.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004738/0.2886, allocations: 395.1 kB / 435.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.2888, allocations: 71.06 kB / 435.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.2898, allocations: 0.963 MB / 436.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.2901, allocations: 207.2 kB / 437.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.475e-05/0.2902, allocations: 32 kB / 437.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.3e-05/0.2903, allocations: 36 kB / 437.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.2905, allocations: 179.2 kB / 437.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002772/0.2908, allocations: 278.1 kB / 437.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009911/0.2918, allocations: 0.9863 MB / 438.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2918, allocations: 0 / 438.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2918, allocations: 0 / 438.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.2918, allocations: 4 kB / 438.6 MB, free: 0.8359 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.001353/0.2931, allocations: 1.142 MB / 439.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2932, allocations: 11.97 kB / 439.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.2933, allocations: 84.42 kB / 439.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005438/0.2939, allocations: 436.8 kB / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.2939, allocations: 16.38 kB / 440.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.2939, allocations: 20.38 kB / 440.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006565/0.2946, allocations: 305.5 kB / 440.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.2946, allocations: 3.938 kB / 440.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.903e-05/0.2947, allocations: 11.98 kB / 440.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.2947, allocations: 4 kB / 440.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004944/0.2952, allocations: 203.9 kB / 440.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.2968, allocations: 0.8941 MB / 441.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.2972, allocations: 174.5 kB / 441.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.2975, allocations: 116.8 kB / 442 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.2975, allocations: 0 / 442 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007101/0.2983, allocations: 394.1 kB / 442.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.684e-06/0.2983, allocations: 0 / 442.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001419/0.2997, allocations: 0.7406 MB / 443.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.2998, allocations: 174.2 kB / 443.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.3011, allocations: 1.004 MB / 444.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.013e-05/0.3012, allocations: 37.7 kB / 444.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.3013, allocations: 161.8 kB / 444.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.378e-05/0.3014, allocations: 55.59 kB / 444.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.3017, allocations: 169.3 kB / 444.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3018, allocations: 342.8 kB / 445 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.3021, allocations: 127.9 kB / 445.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.3024, allocations: 160.7 kB / 445.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000644/0.3031, allocations: 481.7 kB / 445.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3031, allocations: 0 / 445.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00103/0.3041, allocations: 0.5782 MB / 446.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/0.3042, allocations: 134.8 kB / 446.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3043, allocations: 0 / 446.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3043, allocations: 96 / 446.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.792e-05/0.3044, allocations: 23.86 kB / 446.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.3044, allocations: 4 kB / 446.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.3046, allocations: 23.94 kB / 446.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.3048, allocations: 115.9 kB / 446.6 MB, free: 8.301 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.0006456/0.3054, allocations: 0.5452 MB / 447.2 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.3055, allocations: 79.53 kB / 447.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002128/0.3057, allocations: 122.5 kB / 447.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3057, allocations: 0 / 447.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3057, allocations: 12 kB / 447.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3057, allocations: 4.031 kB / 447.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008207/0.3066, allocations: 0.6258 MB / 448 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3066, allocations: 0 / 448 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.209e-05/0.3066, allocations: 11.98 kB / 448 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3066, allocations: 0 / 448 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.3067, allocations: 23.98 kB / 448.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3067, allocations: 0 / 448.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3067, allocations: 0 / 448.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.3079, allocations: 0.7139 MB / 448.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008273/0.3087, allocations: 0.4961 MB / 449.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.3088, allocations: 20 kB / 449.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.309, allocations: 23.91 kB / 449.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.3092, allocations: 51.95 kB / 449.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.3093, allocations: 111.9 kB / 449.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001159/0.3104, allocations: 0.729 MB / 450.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3104, allocations: 0 / 450.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004047/0.3108, 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.0002135/0.3111, allocations: 134.7 kB / 450.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009378/0.312, allocations: 0.5442 MB / 451 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.312, allocations: 4.125 kB / 451 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005312/0.3125, 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.0008803/0.3134, allocations: 198.9 kB / 451.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.3158, allocations: 1.343 MB / 452.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008017/0.3166, allocations: 0.9675 MB / 453.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003574/0.317, allocations: 161.2 kB / 454 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.3172, allocations: 79.28 kB / 454.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3172, allocations: 0 / 454.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of Templates: time 0.01491/0.3321, allocations: 7.846 MB / 461.9 MB, free: 8.734 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 -s cvode -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: 4.760186442174017]