Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002034/0.002034, allocations: 104.8 kB / 21.18 MB, free: 0.707 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.002217/0.002217, allocations: 185.2 kB / 24.47 MB, free: 4.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.925/1.925, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 62.56 kB / 347.6 MB, free: 9.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4149, allocations: 49.16 MB / 396.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004328/0.4193, allocations: 2.124 MB / 398.9 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003123/0.4224, allocations: 1.074 MB / 400 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002162/0.4226, allocations: 6.812 kB / 400 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000249/0.4228, allocations: 36.08 kB / 400 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.423, allocations: 59.58 kB / 400.1 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000574/0.4236, allocations: 137 kB / 400.2 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006606/0.4242, allocations: 387.7 kB / 400.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002232/0.4245, allocations: 80.92 kB / 400.7 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.426, allocations: 0.9706 MB / 401.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003691/0.4263, allocations: 199.9 kB / 401.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.4265, allocations: 34 kB / 401.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.4266, allocations: 34.78 kB / 401.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000261/0.4268, allocations: 166.3 kB / 402.1 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003222/0.4272, allocations: 291.3 kB / 402.4 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.4286, allocations: 0.9801 MB / 403.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4287, allocations: 4 kB / 403.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4287, allocations: 0 / 403.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.242e-05/0.4287, allocations: 0 / 403.4 MB, free: 6.062 MB / 318.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.00198/0.4307, allocations: 1.071 MB / 404.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.4307, allocations: 13.27 kB / 404.4 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002486/0.431, allocations: 88.08 kB / 404.5 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006137/0.4316, allocations: 371.1 kB / 404.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.095e-05/0.4316, allocations: 17.97 kB / 404.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.701e-05/0.4317, allocations: 19.88 kB / 404.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008333/0.4325, allocations: 304.3 kB / 405.2 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.4325, allocations: 0 / 405.2 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.142e-05/0.4326, allocations: 14.84 kB / 405.2 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.4326, allocations: 3.125 kB / 405.2 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005359/0.4331, allocations: 211 kB / 405.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.4353, allocations: 0.8467 MB / 406.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005771/0.4359, allocations: 174.7 kB / 406.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.4362, allocations: 117.3 kB / 406.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.4363, allocations: 1.094 kB / 406.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009293/0.4372, allocations: 388.2 kB / 407 MB, free: 3.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.976e-06/0.4372, allocations: 0 / 407 MB, free: 3.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001992/0.4392, allocations: 0.7399 MB / 407.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.4393, allocations: 174.8 kB / 407.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/0.442, allocations: 1.007 MB / 408.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.4421, allocations: 31.58 kB / 408.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.4423, allocations: 159.1 kB / 409.1 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.4424, allocations: 63.33 kB / 409.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003176/0.4427, allocations: 164.6 kB / 409.3 MB, free: 2.297 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.4428, allocations: 341 kB / 409.6 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003438/0.4432, allocations: 122.6 kB / 409.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.4436, allocations: 164.5 kB / 409.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005626/0.4441, allocations: 473.7 kB / 410.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4441, allocations: 0 / 410.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001145/0.4453, allocations: 0.5868 MB / 410.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.4454, allocations: 136.9 kB / 411.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.4454, allocations: 2.312 kB / 411.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.28e-05/0.4454, allocations: 1.031 kB / 411.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.4456, allocations: 18.86 kB / 411.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.4456, allocations: 2.094 kB / 411.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.4459, allocations: 20.33 kB / 411.1 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.4461, allocations: 115.2 kB / 411.2 MB, free: 0.8672 MB / 318.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.001091/0.4472, allocations: 0.5269 MB / 411.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.4473, allocations: 83.11 kB / 411.8 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003863/0.4477, allocations: 131.6 kB / 412 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.026e-06/0.4477, allocations: 1.031 kB / 412 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.4477, allocations: 1.031 kB / 412 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4478, allocations: 3.938 kB / 412 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.4488, allocations: 0.5977 MB / 412.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.4488, allocations: 4.094 kB / 412.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.449, allocations: 17.61 kB / 412.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.449, allocations: 1.094 kB / 412.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.059e-05/0.4491, allocations: 26.73 kB / 412.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.357e-06/0.4491, allocations: 4.125 kB / 412.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4491, allocations: 1 kB / 412.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.4507, allocations: 0.7089 MB / 413.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.452, allocations: 0.507 MB / 413.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.4522, allocations: 23.97 kB / 413.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.4524, allocations: 15.86 kB / 413.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.4526, allocations: 49.42 kB / 413.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001988/0.4528, allocations: 115.4 kB / 414 MB, free: 14.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001391/0.4542, allocations: 0.7225 MB / 414.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4542, allocations: 0 / 414.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006485/0.4548, allocations: 90.42 kB / 414.9 MB, free: 14.48 MB / 334.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.0003139/0.4552, allocations: 138.6 kB / 415 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.4565, allocations: 0.5402 MB / 415.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.4566, allocations: 0 / 415.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000638/0.4572, allocations: 398.9 kB / 415.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.4585, allocations: 200.3 kB / 416.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.4628, allocations: 1.327 MB / 417.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009914/0.4638, allocations: 0.9642 MB / 418.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006543/0.4645, allocations: 160.5 kB / 418.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.4647, allocations: 75.02 kB / 418.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of SimCode: time 1.753e-06/0.4647, allocations: 0 / 418.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of Templates: time 0.02059/0.4853, allocations: 7.86 MB / 426.5 MB, free: 4.965 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.631811436265707]