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.00161/0.00161, allocations: 105 kB / 21.22 MB, free: 0.6758 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.001492/0.001492, allocations: 209.7 kB / 24.53 MB, free: 4.035 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.479/1.479, allocations: 230.3 MB / 258 MB, free: 8.246 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.002138/0.002138, allocations: 59.91 kB / 378.8 MB, free: 2.777 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.277, allocations: 53.36 MB / 432.1 MB, free: 7.07 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004707/0.2817, allocations: 2.142 MB / 434.3 MB, free: 4.922 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003073/0.2848, allocations: 1.064 MB / 435.3 MB, free: 3.852 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.285, allocations: 7.938 kB / 435.3 MB, free: 3.844 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000261/0.2853, allocations: 35.66 kB / 435.4 MB, free: 3.809 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.2855, allocations: 55.52 kB / 435.4 MB, free: 3.754 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006264/0.2861, allocations: 127.8 kB / 435.5 MB, free: 3.629 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0007634/0.2869, allocations: 395.1 kB / 435.9 MB, free: 3.242 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.2872, allocations: 71.53 kB / 436 MB, free: 3.168 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.2883, allocations: 0.9708 MB / 437 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003635/0.2887, allocations: 207.2 kB / 437.2 MB, free: 1.992 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2888, allocations: 36 kB / 437.2 MB, free: 1.957 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.906e-05/0.2889, allocations: 36 kB / 437.2 MB, free: 1.922 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.2891, allocations: 163.3 kB / 437.4 MB, free: 1.762 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003175/0.2894, allocations: 286.1 kB / 437.7 MB, free: 1.48 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001104/0.2905, allocations: 0.9861 MB / 438.7 MB, free: 0.4961 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2905, allocations: 0 / 438.7 MB, free: 0.4961 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.914e-06/0.2905, allocations: 0 / 438.7 MB, free: 0.4961 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 2.737e-05/0.2906, allocations: 0 / 438.7 MB, free: 0.4961 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.001732/0.2923, allocations: 1.07 MB / 439.7 MB, free: 15.37 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2923, allocations: 12.03 kB / 439.8 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.2925, allocations: 84.42 kB / 439.8 MB, free: 15.27 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005638/0.293, allocations: 367 kB / 440.2 MB, free: 14.89 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.2931, allocations: 20.31 kB / 440.2 MB, free: 14.87 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-05/0.2932, allocations: 24.36 kB / 440.2 MB, free: 14.84 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006567/0.2938, allocations: 301.5 kB / 440.5 MB, free: 14.54 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2938, allocations: 0 / 440.5 MB, free: 14.54 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.503e-05/0.2939, allocations: 12 kB / 440.5 MB, free: 14.53 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.2939, allocations: 0 / 440.5 MB, free: 14.53 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005263/0.2944, allocations: 207.8 kB / 440.7 MB, free: 14.33 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.296, allocations: 0.8581 MB / 441.6 MB, free: 13.43 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004681/0.2964, allocations: 178.5 kB / 441.8 MB, free: 13.24 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002768/0.2967, allocations: 112.8 kB / 441.9 MB, free: 13.13 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.486e-05/0.2968, allocations: 4 kB / 441.9 MB, free: 13.12 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000673/0.2974, allocations: 390.1 kB / 442.3 MB, free: 12.71 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.2974, allocations: 0 / 442.3 MB, free: 12.71 MB / 350.1 MB
Notification: Performance of matching and sorting (n=24): time 0.001514/0.2989, allocations: 0.7339 MB / 443 MB, free: 11.94 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.2991, allocations: 174.2 kB / 443.2 MB, free: 11.73 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.3007, allocations: 1 MB / 444.2 MB, free: 10.72 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.3e-05/0.3007, allocations: 37.69 kB / 444.2 MB, free: 10.68 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.3009, allocations: 161.9 kB / 444.4 MB, free: 10.52 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.722e-05/0.301, allocations: 59.53 kB / 444.4 MB, free: 10.46 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.3013, allocations: 165.3 kB / 444.6 MB, free: 10.29 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001644/0.3014, allocations: 342.8 kB / 444.9 MB, free: 9.945 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002922/0.3017, allocations: 120 kB / 445 MB, free: 9.828 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.302, allocations: 165 kB / 445.2 MB, free: 9.652 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006652/0.3027, allocations: 477.7 kB / 445.7 MB, free: 9.121 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3027, allocations: 3.938 kB / 445.7 MB, free: 9.117 MB / 350.1 MB
Notification: Performance of matching and sorting (n=30) (initialization): time 0.001059/0.3038, allocations: 0.5704 MB / 446.2 MB, free: 8.516 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.3039, allocations: 138.8 kB / 446.4 MB, free: 8.355 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3039, allocations: 3.984 kB / 446.4 MB, free: 8.352 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3039, allocations: 0 / 446.4 MB, free: 8.352 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.591e-05/0.304, allocations: 19.94 kB / 446.4 MB, free: 8.332 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.304, allocations: 4 kB / 446.4 MB, free: 8.328 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.3043, allocations: 32.06 kB / 446.4 MB, free: 8.297 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/0.3044, allocations: 115.9 kB / 446.6 MB, free: 8.184 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.0007649/0.3052, allocations: 0.5263 MB / 447.1 MB, free: 7.625 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.3053, allocations: 75.53 kB / 447.2 MB, free: 7.551 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002399/0.3055, allocations: 138.5 kB / 447.3 MB, free: 7.414 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.3056, allocations: 0 / 447.3 MB, free: 7.414 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3056, allocations: 3.938 kB / 447.3 MB, free: 7.41 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3056, allocations: 96 / 447.3 MB, free: 7.41 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008396/0.3064, allocations: 0.6014 MB / 447.9 MB, free: 6.766 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3064, allocations: 0 / 447.9 MB, free: 6.766 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.76e-05/0.3065, allocations: 12 kB / 447.9 MB, free: 6.754 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3065, allocations: 0 / 447.9 MB, free: 6.754 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.3065, allocations: 27.98 kB / 447.9 MB, free: 6.727 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.3065, allocations: 0 / 447.9 MB, free: 6.727 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3065, allocations: 0 / 447.9 MB, free: 6.727 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.3077, allocations: 0.7182 MB / 448.7 MB, free: 5.965 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009286/0.3086, allocations: 0.4968 MB / 449.1 MB, free: 5.457 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.3088, allocations: 24 kB / 449.2 MB, free: 5.434 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.3089, allocations: 15.98 kB / 449.2 MB, free: 5.418 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.3091, allocations: 55.94 kB / 449.2 MB, free: 5.363 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.3092, allocations: 115.9 kB / 449.4 MB, free: 5.25 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.001001/0.3102, allocations: 0.7251 MB / 450.1 MB, free: 4.531 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.01e-07/0.3102, allocations: 4 kB / 450.1 MB, free: 4.527 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003764/0.3106, allocations: 88 kB / 450.2 MB, free: 4.441 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.0001769/0.3108, allocations: 126.7 kB / 450.3 MB, free: 4.305 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0009243/0.3117, allocations: 0.5521 MB / 450.8 MB, free: 3.703 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3117, allocations: 0 / 450.8 MB, free: 3.703 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005368/0.3122, allocations: 397.5 kB / 451.2 MB, free: 3.266 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009203/0.3132, allocations: 205.2 kB / 451.4 MB, free: 3.086 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.3155, allocations: 1.332 MB / 452.8 MB, free: 1.727 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007811/0.3163, allocations: 0.9636 MB / 453.7 MB, free: 0.7383 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0003718/0.3166, allocations: 165.1 kB / 453.9 MB, free: 0.5742 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.3168, allocations: 71.3 kB / 454 MB, free: 0.5039 MB / 350.1 MB
Notification: Performance of SimCode: time 6.41e-07/0.3168, allocations: 4 kB / 454 MB, free: 0.5 MB / 350.1 MB
Notification: Performance of Templates: time 0.01512/0.3319, allocations: 7.854 MB / 461.8 MB, free: 8.66 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.693736653774977]