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.0008596/0.0008596, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003918/0.003918, allocations: 153.2 kB / 24.69 MB, free: 9.434 MB / 18.57 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 0.8218/0.8218, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.132e-06/1.132e-06, allocations: 0 / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/1.97e-05, allocations: 6.219 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.001923/0.001942, allocations: 1.987 MB / 321.7 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.003391, allocations: 0.9783 MB / 322.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.387e-05/0.003475, allocations: 11.88 kB / 322.7 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.003618, allocations: 43.64 kB / 322.7 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.174e-05/0.003699, allocations: 55.52 kB / 322.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.004021, allocations: 127.8 kB / 322.9 MB, free: 2.625 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000321/0.004342, allocations: 403 kB / 323.3 MB, free: 2.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.004484, allocations: 71.55 kB / 323.3 MB, free: 2.156 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006443/0.005128, allocations: 1.029 MB / 324.4 MB, free: 1.125 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.00535, allocations: 179.5 kB / 324.6 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/0.005414, allocations: 36 kB / 324.6 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.335e-05/0.005467, allocations: 36 kB / 324.6 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.005603, allocations: 163.4 kB / 324.8 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.005763, allocations: 143.4 kB / 324.9 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006517/0.006415, allocations: 0.9852 MB / 325.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.006417, allocations: 0 / 325.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.006418, allocations: 0 / 325.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.006427, allocations: 0 / 325.9 MB, free: 15.59 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.0008382/0.007265, allocations: 1.07 MB / 327 MB, free: 14.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.007299, allocations: 12.03 kB / 327 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.584e-05/0.007384, allocations: 88.38 kB / 327.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.007683, allocations: 370.2 kB / 327.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.007712, allocations: 24.31 kB / 327.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.007746, allocations: 24.36 kB / 327.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004279/0.008174, allocations: 420.8 kB / 327.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.008183, allocations: 192 / 327.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.008208, allocations: 8.375 kB / 327.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.008214, allocations: 7.938 kB / 327.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.00853, allocations: 342.6 kB / 328.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007802/0.00931, allocations: 0.7418 MB / 329 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003259/0.009636, allocations: 317.2 kB / 329.3 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.009829, allocations: 247.6 kB / 329.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.009844, allocations: 0 / 329.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003822/0.01023, allocations: 0.5122 MB / 330.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.01023, allocations: 96 / 330.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008859/0.01111, allocations: 1.001 MB / 331.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.01118, allocations: 174.2 kB / 331.2 MB, free: 9.867 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007742/0.01195, allocations: 1.008 MB / 332.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.01198, allocations: 29.7 kB / 332.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.664e-05/0.01206, allocations: 161.9 kB / 332.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.01211, allocations: 67.61 kB / 332.5 MB, free: 8.586 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.01223, allocations: 165.3 kB / 332.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.127e-05/0.01231, allocations: 334.8 kB / 333 MB, free: 8.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002023/0.01251, allocations: 254.8 kB / 333.2 MB, free: 7.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.01273, allocations: 307 kB / 333.5 MB, free: 7.469 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.01308, allocations: 489.7 kB / 334 MB, free: 6.926 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.01309, allocations: 4 kB / 334 MB, free: 6.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005986/0.01368, allocations: 0.7332 MB / 334.7 MB, free: 6.133 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.253e-05/0.01375, allocations: 142.8 kB / 334.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01375, allocations: 0 / 334.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.01376, allocations: 4 kB / 334.9 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.849e-05/0.01382, allocations: 15.94 kB / 334.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.01383, allocations: 0 / 334.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.01395, allocations: 27.94 kB / 334.9 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.087e-05/0.01402, allocations: 111.9 kB / 335 MB, free: 5.812 MB / 298.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.0003541/0.01437, allocations: 0.5302 MB / 335.6 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.628e-05/0.01443, allocations: 83.47 kB / 335.6 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.01456, allocations: 126.5 kB / 335.8 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01456, allocations: 0 / 335.8 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.01456, allocations: 0 / 335.8 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.01457, allocations: 4 kB / 335.8 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003697/0.01494, allocations: 0.4967 MB / 336.3 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01494, allocations: 4 kB / 336.3 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.646e-05/0.01497, allocations: 16.05 kB / 336.3 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.01497, allocations: 7.938 kB / 336.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.015, allocations: 31.98 kB / 336.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.015, allocations: 0 / 336.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.015, allocations: 0 / 336.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006766/0.01568, allocations: 0.8363 MB / 337.2 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004829/0.01616, allocations: 0.5008 MB / 337.7 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.01622, allocations: 27.94 kB / 337.7 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.063e-05/0.01631, allocations: 15.98 kB / 337.7 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.01642, allocations: 59.86 kB / 337.8 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.262e-05/0.0165, allocations: 115.9 kB / 337.9 MB, free: 2.824 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005659/0.01706, allocations: 0.7328 MB / 338.6 MB, free: 2.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.01706, allocations: 0 / 338.6 MB, free: 2.094 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000223/0.01728, allocations: 95.89 kB / 338.7 MB, free: 2 MB / 298.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.0001054/0.01739, allocations: 131.2 kB / 338.8 MB, free: 1.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006021/0.01799, allocations: 0.8115 MB / 339.6 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01799, allocations: 0 / 339.6 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.01831, allocations: 0.5353 MB / 340.2 MB, free: 344 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004428/0.01875, allocations: 196.9 kB / 340.4 MB, free: 168 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.02011, allocations: 1.545 MB / 341.9 MB, free: 14.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.02039, allocations: 373.3 kB / 342.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.02053, allocations: 96.3 kB / 342.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of SimCode: time 5.61e-07/0.02053, allocations: 0 / 342.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of Templates: time 0.004807/0.02534, allocations: 5.456 MB / 347.8 MB, free: 8.633 MB / 314.7 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.611038587987423]