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.002019/0.002019, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 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.00191/0.00191, allocations: 160.8 kB / 24.27 MB, free: 160 kB / 18.57 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.564/1.564, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 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 1.683e-06/1.683e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.049e-05, allocations: 2.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003782/0.003813, allocations: 2.048 MB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002537/0.006349, allocations: 1.025 MB / 275.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.941e-05/0.006449, allocations: 7.938 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.006637, allocations: 31.66 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.006778, allocations: 63.5 kB / 275.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004664/0.007244, allocations: 131.7 kB / 275.5 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008506/0.008095, allocations: 399 kB / 275.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.008299, allocations: 67.64 kB / 276 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001288/0.009587, allocations: 1.033 MB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002962/0.009883, allocations: 171.5 kB / 277.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.01, allocations: 36 kB / 277.2 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.01011, allocations: 32 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.01032, allocations: 175.3 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.01056, allocations: 143.4 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.01176, allocations: 0.9852 MB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.01176, allocations: 0 / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.01177, allocations: 0 / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.998e-06/0.01178, allocations: 4 kB / 278.5 MB, free: 11.48 MB / 266.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.001865/0.01364, allocations: 1.303 MB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.01368, allocations: 15.98 kB / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002103/0.01389, allocations: 100.4 kB / 279.9 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006048/0.0145, allocations: 369.1 kB / 280.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/0.01455, allocations: 24.36 kB / 280.3 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.0146, allocations: 16.38 kB / 280.3 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007656/0.01537, allocations: 396.8 kB / 280.7 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.01538, allocations: 4.125 kB / 280.7 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.01543, allocations: 12.38 kB / 280.7 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.01544, allocations: 11.94 kB / 280.8 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005463/0.01599, allocations: 294.7 kB / 281 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.0181, allocations: 1.087 MB / 282.1 MB, free: 7.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006474/0.01875, allocations: 337.8 kB / 282.5 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000632/0.01938, allocations: 266.4 kB / 282.7 MB, free: 7.023 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.01942, allocations: 4 kB / 282.7 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007697/0.02019, allocations: 0.553 MB / 283.3 MB, free: 6.406 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.02019, allocations: 0 / 283.3 MB, free: 6.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001857/0.02204, allocations: 1.038 MB / 284.3 MB, free: 5.289 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.02219, allocations: 182.1 kB / 284.5 MB, free: 5.074 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/0.02451, allocations: 1.393 MB / 285.9 MB, free: 3.664 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.928e-05/0.02458, allocations: 37.69 kB / 285.9 MB, free: 3.621 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.02478, allocations: 216.6 kB / 286.1 MB, free: 3.402 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.02489, allocations: 67.58 kB / 286.2 MB, free: 3.336 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/0.02519, allocations: 195 kB / 286.4 MB, free: 3.137 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003182/0.02551, allocations: 0.5235 MB / 286.9 MB, free: 2.602 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/0.02593, allocations: 258.8 kB / 287.2 MB, free: 2.324 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004673/0.0264, allocations: 325.1 kB / 287.5 MB, free: 1.961 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007681/0.02717, allocations: 0.5193 MB / 288 MB, free: 1.371 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.02717, allocations: 0 / 288 MB, free: 1.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001305/0.02848, allocations: 0.7566 MB / 288.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.02863, allocations: 142.8 kB / 288.9 MB, free: 404 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.02864, allocations: 3.984 kB / 288.9 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.02866, allocations: 4 kB / 288.9 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.02874, allocations: 8 kB / 288.9 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.02875, allocations: 4 kB / 288.9 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.02897, allocations: 20.05 kB / 288.9 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.02912, allocations: 115.9 kB / 289 MB, free: 248 kB / 266.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.001016/0.03013, allocations: 0.5367 MB / 289.6 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.0303, allocations: 99.47 kB / 289.7 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.03051, allocations: 110.5 kB / 289.8 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.03052, allocations: 4 kB / 289.8 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.03052, allocations: 4 kB / 289.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.03053, allocations: 0 / 289.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.03179, allocations: 0.7537 MB / 290.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.03179, allocations: 0 / 290.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.222e-05/0.03184, allocations: 11.94 kB / 290.6 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.03185, allocations: 7.969 kB / 290.6 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.075e-05/0.03191, allocations: 27.98 kB / 290.6 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.03191, allocations: 0 / 290.6 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.03191, allocations: 0 / 290.6 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.03343, allocations: 0.9083 MB / 291.5 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009256/0.03436, allocations: 464.8 kB / 292 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.03448, allocations: 28.06 kB / 292 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.03465, allocations: 23.98 kB / 292 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.03485, allocations: 59.88 kB / 292.1 MB, free: 13.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.035, allocations: 115.9 kB / 292.2 MB, free: 12.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001375/0.03637, allocations: 0.846 MB / 293 MB, free: 12.11 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03637, allocations: 0 / 293 MB, free: 12.11 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004143/0.03679, allocations: 87.94 kB / 293.1 MB, free: 12.03 MB / 282.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.0002077/0.037, allocations: 139.2 kB / 293.3 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.03832, allocations: 0.8815 MB / 294.1 MB, free: 10.9 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.03833, allocations: 0 / 294.1 MB, free: 10.9 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007584/0.03908, allocations: 0.5943 MB / 294.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009576/0.04004, allocations: 228.4 kB / 294.9 MB, free: 10.01 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.0426, allocations: 1.459 MB / 296.4 MB, free: 8.492 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007981/0.0434, allocations: 345 kB / 296.7 MB, free: 8.133 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004096/0.04381, allocations: 165.2 kB / 296.9 MB, free: 7.969 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.04401, allocations: 76.36 kB / 297 MB, free: 7.895 MB / 282.7 MB Notification: Performance of SimCode: time 1.523e-06/0.04401, allocations: 0 / 297 MB, free: 7.895 MB / 282.7 MB Notification: Performance of Templates: time 0.1203/0.1643, allocations: 8.287 MB / 305.3 MB, free: 42.82 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] 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.752438917057589]