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.001247/0.001247, allocations: 105.2 kB / 19.8 MB, free: 2.516 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.001453/0.001453, allocations: 213.7 kB / 23 MB, free: 5.609 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.463/1.463, allocations: 230.2 MB / 256.2 MB, free: 8.551 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.00177/0.00177, allocations: 63.88 kB / 376.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2944, allocations: 53.32 MB / 429.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003477/0.2979, allocations: 2.138 MB / 431.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.3004, allocations: 1.056 MB / 433 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.3006, allocations: 7.938 kB / 433 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002041/0.3008, allocations: 39.64 kB / 433 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.3009, allocations: 55.53 kB / 433.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.3013, allocations: 123.8 kB / 433.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004851/0.3018, allocations: 391.1 kB / 433.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.302, allocations: 75.02 kB / 433.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.3031, allocations: 0.963 MB / 434.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.3034, allocations: 207.2 kB / 434.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.029e-05/0.3034, allocations: 36 kB / 434.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.012e-05/0.3035, allocations: 36 kB / 434.9 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002047/0.3037, allocations: 167.3 kB / 435.1 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002856/0.304, allocations: 286.1 kB / 435.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.3051, allocations: 0.9856 MB / 436.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3051, allocations: 0 / 436.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3052, allocations: 0 / 436.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.3052, allocations: 0 / 436.3 MB, free: 0.9844 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.001437/0.3066, allocations: 1.142 MB / 437.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.3066, allocations: 8.031 kB / 437.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.3068, allocations: 84.42 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.3073, allocations: 444.7 kB / 438 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.3073, allocations: 16.38 kB / 438 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/0.3074, allocations: 20.38 kB / 438 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006503/0.308, allocations: 309.5 kB / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.308, allocations: 0 / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/0.3081, allocations: 8 kB / 438.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.3081, allocations: 4 kB / 438.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004518/0.3085, allocations: 207.9 kB / 438.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.3099, allocations: 0.8903 MB / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.3103, allocations: 170.5 kB / 439.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002538/0.3106, allocations: 120.8 kB / 439.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-05/0.3106, allocations: 0 / 439.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008409/0.3115, allocations: 394 kB / 440.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.3115, allocations: 4 kB / 440.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001438/0.3129, allocations: 0.7526 MB / 440.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.313, allocations: 170.2 kB / 441 MB, free: 11.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.3143, allocations: 1.004 MB / 442 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.3144, allocations: 37.69 kB / 442.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3145, allocations: 157.9 kB / 442.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.443e-05/0.3146, allocations: 55.59 kB / 442.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002279/0.3148, allocations: 165.3 kB / 442.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.315, allocations: 342.8 kB / 442.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.3153, allocations: 120 kB / 442.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000311/0.3156, allocations: 172.2 kB / 443.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006374/0.3162, allocations: 477.7 kB / 443.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3162, allocations: 0 / 443.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001015/0.3172, allocations: 0.582 MB / 444.1 MB, free: 8.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.3174, allocations: 142.7 kB / 444.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3174, allocations: 0 / 444.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3174, allocations: 4 kB / 444.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.252e-05/0.3175, allocations: 8 kB / 444.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.3175, allocations: 7.984 kB / 444.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.3177, allocations: 20.06 kB / 444.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.3178, allocations: 115.9 kB / 444.4 MB, free: 8.445 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.0006558/0.3185, allocations: 0.5414 MB / 444.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3186, allocations: 79.53 kB / 445 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000264/0.3189, allocations: 126.4 kB / 445.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3189, allocations: 8 kB / 445.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3189, allocations: 0 / 445.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3189, allocations: 0 / 445.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007602/0.3196, allocations: 0.6258 MB / 445.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3196, allocations: 0 / 445.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.842e-05/0.3197, allocations: 8 kB / 445.8 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3197, allocations: 4.031 kB / 445.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.637e-05/0.3198, allocations: 31.97 kB / 445.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3198, allocations: 0 / 445.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3198, allocations: 0 / 445.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.3209, allocations: 0.7139 MB / 446.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006697/0.3216, allocations: 0.4961 MB / 447 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.3217, allocations: 20 kB / 447 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.3218, allocations: 15.98 kB / 447.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.322, allocations: 52.14 kB / 447.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.3221, allocations: 116 kB / 447.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009394/0.3231, allocations: 0.725 MB / 448 MB, free: 4.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3231, allocations: 0 / 448 MB, free: 4.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.3234, allocations: 95.94 kB / 448 MB, free: 4.656 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.0001858/0.3236, allocations: 130.7 kB / 448.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008899/0.3245, allocations: 0.5559 MB / 448.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3245, allocations: 0 / 448.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000487/0.325, allocations: 393.5 kB / 449.1 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008002/0.3258, allocations: 193.9 kB / 449.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.3282, allocations: 1.348 MB / 450.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/0.3293, allocations: 0.9676 MB / 451.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005778/0.3299, allocations: 165.2 kB / 451.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.3301, allocations: 71.3 kB / 451.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3301, allocations: 8 kB / 451.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of Templates: time 0.0177/0.3478, allocations: 7.831 MB / 459.7 MB, free: 8.875 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/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: 4.7228456903249025]