Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 43.92 kB / 370.9 MB, free: 9.379 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3019, allocations: 52.19 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003955/0.3058, allocations: 2.133 MB / 425.3 MB, free: 12.56 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002421/0.3083, allocations: 1.021 MB / 426.3 MB, free: 11.53 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.3084, allocations: 7.938 kB / 426.3 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.3086, allocations: 39.64 kB / 426.3 MB, free: 11.48 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001904/0.3088, allocations: 55.52 kB / 426.4 MB, free: 11.43 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000444/0.3092, allocations: 123.8 kB / 426.5 MB, free: 11.31 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005721/0.3098, allocations: 403.1 kB / 426.9 MB, free: 10.91 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/0.31, allocations: 79.56 kB / 427 MB, free: 10.83 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.3111, allocations: 0.967 MB / 427.9 MB, free: 9.863 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.3114, allocations: 203.2 kB / 428.1 MB, free: 9.664 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.961e-05/0.3115, allocations: 32 kB / 428.2 MB, free: 9.633 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.345e-05/0.3116, allocations: 36 kB / 428.2 MB, free: 9.598 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.3118, allocations: 163.3 kB / 428.4 MB, free: 9.438 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003219/0.3122, allocations: 294 kB / 428.6 MB, free: 9.148 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001174/0.3133, allocations: 0.9818 MB / 429.6 MB, free: 8.168 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3133, allocations: 0 / 429.6 MB, free: 8.168 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.305e-06/0.3133, allocations: 0 / 429.6 MB, free: 8.168 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.089e-05/0.3134, allocations: 0 / 429.6 MB, free: 8.168 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.001609/0.315, allocations: 1.07 MB / 430.7 MB, free: 7.039 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.315, allocations: 12.03 kB / 430.7 MB, free: 7.027 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.3152, allocations: 80.42 kB / 430.8 MB, free: 6.949 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005805/0.3157, allocations: 371 kB / 431.1 MB, free: 6.559 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.768e-05/0.3158, allocations: 20.38 kB / 431.2 MB, free: 6.539 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.3158, allocations: 16.38 kB / 431.2 MB, free: 6.523 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006812/0.3165, allocations: 297.8 kB / 431.5 MB, free: 6.227 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3165, allocations: 3.984 kB / 431.5 MB, free: 6.223 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.659e-05/0.3166, allocations: 11.98 kB / 431.5 MB, free: 6.211 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.3166, allocations: 8 kB / 431.5 MB, free: 6.203 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004645/0.3171, allocations: 203.9 kB / 431.7 MB, free: 6.004 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.3185, allocations: 0.8619 MB / 432.6 MB, free: 5.098 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004493/0.319, allocations: 174.5 kB / 432.7 MB, free: 4.918 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003268/0.3193, allocations: 120.8 kB / 432.8 MB, free: 4.797 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.3193, allocations: 4 kB / 432.9 MB, free: 4.793 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006667/0.32, allocations: 381.2 kB / 433.2 MB, free: 4.387 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.684e-06/0.32, allocations: 0 / 433.2 MB, free: 4.387 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.001494/0.3215, allocations: 0.7492 MB / 434 MB, free: 3.609 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.3216, allocations: 170.2 kB / 434.1 MB, free: 3.406 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.323, allocations: 1 MB / 435.1 MB, free: 2.398 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.109e-05/0.323, allocations: 33.7 kB / 435.2 MB, free: 2.359 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.3232, allocations: 161.9 kB / 435.3 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.362e-05/0.3233, allocations: 59.56 kB / 435.4 MB, free: 2.137 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002341/0.3235, allocations: 165.3 kB / 435.5 MB, free: 1.969 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001819/0.3237, allocations: 338.8 kB / 435.9 MB, free: 1.629 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.324, allocations: 123.9 kB / 436 MB, free: 1.508 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.3243, allocations: 160.2 kB / 436.2 MB, free: 1.336 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006447/0.3249, allocations: 477.7 kB / 436.6 MB, free: 0.8047 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3249, allocations: 0 / 436.6 MB, free: 0.8047 MB / 334.1 MB
Notification: Performance of matching and sorting (n=30) (initialization): time 0.001064/0.326, allocations: 0.582 MB / 437.2 MB, free: 196 kB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.3261, allocations: 134.8 kB / 437.3 MB, free: 36 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3261, allocations: 0 / 437.3 MB, free: 36 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.3261, allocations: 4.156 kB / 437.3 MB, free: 32 kB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.721e-05/0.3262, allocations: 23.92 kB / 437.4 MB, free: 8 kB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3262, allocations: 3.938 kB / 437.4 MB, free: 4 kB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.3265, allocations: 19.92 kB / 437.4 MB, free: 15.98 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.3266, allocations: 116 kB / 437.5 MB, free: 15.87 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.0006512/0.3273, allocations: 0.5301 MB / 438 MB, free: 15.31 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.3274, allocations: 87.52 kB / 438.1 MB, free: 15.22 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/0.3276, allocations: 130.5 kB / 438.2 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.3276, allocations: 4 kB / 438.2 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3276, allocations: 3.938 kB / 438.3 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3276, allocations: 3.984 kB / 438.3 MB, free: 15.08 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007649/0.3284, allocations: 0.5937 MB / 438.9 MB, free: 14.45 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3284, allocations: 0 / 438.9 MB, free: 14.45 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.983e-05/0.3284, allocations: 15.92 kB / 438.9 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3284, allocations: 4 kB / 438.9 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.363e-05/0.3285, allocations: 27.98 kB / 438.9 MB, free: 14.4 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3285, allocations: 0 / 438.9 MB, free: 14.4 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3285, allocations: 4 kB / 438.9 MB, free: 14.39 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.3297, allocations: 0.7022 MB / 439.6 MB, free: 13.65 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009074/0.3306, allocations: 0.493 MB / 440.1 MB, free: 13.14 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.3307, allocations: 24 kB / 440.1 MB, free: 13.12 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.3309, allocations: 15.98 kB / 440.1 MB, free: 13.11 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.3311, allocations: 47.95 kB / 440.2 MB, free: 13.06 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.3312, allocations: 123.8 kB / 440.3 MB, free: 12.94 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.001115/0.3323, allocations: 0.7328 MB / 441 MB, free: 12.21 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.3323, allocations: 0 / 441 MB, free: 12.21 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003969/0.3327, allocations: 87.95 kB / 441.1 MB, free: 12.12 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.0001967/0.3329, allocations: 130.8 kB / 441.2 MB, free: 11.98 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.000987/0.3339, allocations: 0.5404 MB / 441.8 MB, free: 11.39 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3339, allocations: 0 / 441.8 MB, free: 11.39 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005457/0.3345, allocations: 397.5 kB / 442.2 MB, free: 10.96 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009063/0.3354, allocations: 205.3 kB / 442.4 MB, free: 10.77 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.3376, allocations: 1.331 MB / 443.7 MB, free: 9.414 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/0.3384, allocations: 0.9674 MB / 444.7 MB, free: 8.422 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.000364/0.3388, allocations: 165.2 kB / 444.8 MB, free: 8.258 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.339, allocations: 75.27 kB / 444.9 MB, free: 8.184 MB / 350.1 MB
Notification: Performance of SimCode: time 5.71e-07/0.339, allocations: 0 / 444.9 MB, free: 8.184 MB / 350.1 MB
Notification: Performance of Templates: time 0.01431/0.3533, allocations: 7.857 MB / 452.8 MB, free: 360 kB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.800242939963937]