Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000846/0.000846, allocations: 87.62 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003231/0.003231, allocations: 163.6 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8424/0.8424, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 3.938 kB / 325.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.761e-05/1.952e-05, allocations: 2.281 kB / 325.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002114/0.002134, allocations: 2.014 MB / 327.8 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.003898, allocations: 1.013 MB / 328.9 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.686e-05/0.003995, allocations: 7.938 kB / 328.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.004158, allocations: 31.66 kB / 328.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.463e-05/0.004243, allocations: 59.5 kB / 329 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.004614, allocations: 131.7 kB / 329.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.004972, allocations: 407 kB / 329.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.005126, allocations: 71.59 kB / 329.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006983/0.005824, allocations: 1.029 MB / 330.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.006006, allocations: 175.5 kB / 330.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.315e-05/0.006059, allocations: 32 kB / 330.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.456e-05/0.006104, allocations: 36 kB / 330.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.006211, allocations: 163.4 kB / 331 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.006331, allocations: 143.4 kB / 331.1 MB, free: 9.992 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006459/0.006977, allocations: 0.9891 MB / 332.1 MB, free: 9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.006979, allocations: 0 / 332.1 MB, free: 9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.00698, allocations: 0 / 332.1 MB, free: 9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.006991, allocations: 4 kB / 332.1 MB, free: 8.996 MB / 298.7 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.0009852/0.007976, allocations: 1.077 MB / 333.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.008011, allocations: 8.031 kB / 333.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.008115, allocations: 88.42 kB / 333.3 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.008444, allocations: 370.2 kB / 333.6 MB, free: 7.383 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.008474, allocations: 12.38 kB / 333.7 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.008508, allocations: 20.38 kB / 333.7 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.008964, allocations: 428.6 kB / 334.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.008974, allocations: 192 / 334.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.009002, allocations: 12.38 kB / 334.1 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.009009, allocations: 7.938 kB / 334.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003289/0.009338, allocations: 354.5 kB / 334.5 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.01018, allocations: 0.7532 MB / 335.2 MB, free: 5.727 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.01053, allocations: 305.3 kB / 335.5 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.01073, allocations: 247.6 kB / 335.7 MB, free: 5.125 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.01075, allocations: 4 kB / 335.8 MB, free: 5.121 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004372/0.01118, allocations: 0.515 MB / 336.3 MB, free: 4.547 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.01119, allocations: 0 / 336.3 MB, free: 4.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009486/0.01214, allocations: 1.005 MB / 337.3 MB, free: 3.461 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/0.01221, allocations: 178.2 kB / 337.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.01301, allocations: 0.9922 MB / 338.4 MB, free: 2.242 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.01304, allocations: 37.7 kB / 338.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.222e-05/0.01313, allocations: 157.9 kB / 338.6 MB, free: 2.043 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.01318, allocations: 67.5 kB / 338.7 MB, free: 1.977 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.01333, allocations: 161.3 kB / 338.9 MB, free: 1.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.01344, allocations: 338.8 kB / 339.2 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.01366, allocations: 250.8 kB / 339.4 MB, free: 1.203 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.01387, allocations: 291 kB / 339.7 MB, free: 0.875 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/0.01424, allocations: 0.4939 MB / 340.2 MB, free: 324 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.01424, allocations: 3.938 kB / 340.2 MB, free: 320 kB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006088/0.01485, allocations: 0.7254 MB / 340.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.611e-05/0.01491, allocations: 138.8 kB / 341.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.01492, allocations: 0 / 341.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.01493, allocations: 0 / 341.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.309e-05/0.01499, allocations: 19.92 kB / 341.1 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.015, allocations: 4 kB / 341.1 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.01513, allocations: 27.94 kB / 341.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.669e-05/0.01521, allocations: 115.9 kB / 341.2 MB, free: 15.21 MB / 314.7 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.0003716/0.01558, allocations: 0.5262 MB / 341.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.695e-05/0.01564, allocations: 83.47 kB / 341.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.01577, allocations: 134.5 kB / 342 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-06/0.01577, allocations: 0 / 342 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.01578, allocations: 3.938 kB / 342 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01578, allocations: 4 kB / 342 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003887/0.01617, allocations: 0.4968 MB / 342.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.01617, allocations: 0 / 342.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.761e-05/0.0162, allocations: 8 kB / 342.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.0162, allocations: 7.938 kB / 342.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.01623, allocations: 23.98 kB / 342.5 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.01624, allocations: 224 / 342.5 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.01624, allocations: 7.938 kB / 342.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000679/0.01692, allocations: 0.8427 MB / 343.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.0174, allocations: 0.4968 MB / 343.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.218e-05/0.01747, allocations: 31.94 kB / 343.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.104e-05/0.01756, allocations: 15.98 kB / 343.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.01767, allocations: 55.94 kB / 344 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.909e-05/0.01774, allocations: 115.9 kB / 344.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005819/0.01832, allocations: 0.7289 MB / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01832, allocations: 0 / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002316/0.01855, allocations: 88 kB / 344.9 MB, free: 11.4 MB / 314.7 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.0001185/0.01867, allocations: 135.3 kB / 345 MB, free: 11.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006338/0.01931, allocations: 0.8143 MB / 345.8 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.01931, allocations: 0 / 345.8 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.01965, allocations: 0.5315 MB / 346.4 MB, free: 9.742 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.02011, allocations: 200 kB / 346.6 MB, free: 9.562 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.02156, allocations: 1.55 MB / 348.1 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.02183, allocations: 369.3 kB / 348.5 MB, free: 7.566 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.02198, allocations: 100.3 kB / 348.6 MB, free: 7.469 MB / 314.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02198, allocations: 0 / 348.6 MB, free: 7.469 MB / 314.7 MB Notification: Performance of Templates: time 0.005632/0.02761, allocations: 5.454 MB / 354 MB, free: 2.031 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.944563087075949]