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.001125/0.001125, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001555/0.00268, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0009617/0.0009617, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000994/0.001956, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.054/1.054, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08715/1.141, allocations: 53.86 MB / 243.8 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] 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.913e-06/1.913e-06, allocations: 0 / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.811e-05/2.003e-05, allocations: 2.312 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003113/0.003133, allocations: 2.133 MB / 247.2 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002294/0.005427, allocations: 1.064 MB / 248.2 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.005537, allocations: 7.938 kB / 248.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.005679, allocations: 35.7 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.005806, allocations: 55.47 kB / 248.3 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003822/0.006188, allocations: 139.7 kB / 248.4 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004732/0.006662, allocations: 399 kB / 248.8 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.00685, allocations: 74.25 kB / 248.9 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009878/0.007838, allocations: 0.9754 MB / 249.9 MB, free: 8.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.008069, allocations: 179.5 kB / 250.1 MB, free: 8.574 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.86e-05/0.008137, allocations: 32 kB / 250.1 MB, free: 8.543 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.613e-05/0.008203, allocations: 36 kB / 250.1 MB, free: 8.508 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.008355, allocations: 159.4 kB / 250.3 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.008511, allocations: 115.6 kB / 250.4 MB, free: 8.238 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006295/0.009141, allocations: 0.6112 MB / 251 MB, free: 7.625 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.82e-05/0.009159, allocations: 0 / 251 MB, free: 7.625 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.00916, allocations: 8 kB / 251 MB, free: 7.617 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.009183, allocations: 0 / 251 MB, free: 7.617 MB / 250.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.001301/0.01048, allocations: 1.119 MB / 252.1 MB, free: 6.445 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.01052, allocations: 8.031 kB / 252.1 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.01065, allocations: 64.88 kB / 252.2 MB, free: 6.375 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.01105, allocations: 346.2 kB / 252.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.01109, allocations: 12.38 kB / 252.6 MB, free: 6 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.777e-05/0.01113, allocations: 20.38 kB / 252.6 MB, free: 5.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005238/0.01166, allocations: 345.2 kB / 252.9 MB, free: 5.609 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.01167, allocations: 192 / 252.9 MB, free: 5.609 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.0117, allocations: 12.38 kB / 252.9 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.01171, allocations: 7.938 kB / 252.9 MB, free: 5.59 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002663/0.01198, allocations: 206.7 kB / 253.1 MB, free: 5.363 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008916/0.01287, allocations: 470.3 kB / 253.6 MB, free: 4.887 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003282/0.0132, allocations: 237.2 kB / 253.8 MB, free: 4.621 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.01338, allocations: 195.6 kB / 254 MB, free: 4.402 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.0134, allocations: 11.98 kB / 254 MB, free: 4.391 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004013/0.0138, allocations: 456.7 kB / 254.5 MB, free: 3.883 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.384e-06/0.0138, allocations: 0 / 254.5 MB, free: 3.883 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007351/0.01454, allocations: 0.679 MB / 255.2 MB, free: 3.125 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.0146, allocations: 126.8 kB / 255.3 MB, free: 2.977 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007939/0.0154, allocations: 0.6442 MB / 255.9 MB, free: 2.316 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.01544, allocations: 41.69 kB / 256 MB, free: 2.27 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/0.01552, allocations: 138.3 kB / 256.1 MB, free: 2.133 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.01559, allocations: 59.58 kB / 256.2 MB, free: 2.074 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.01576, allocations: 145.3 kB / 256.3 MB, free: 1.926 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.01587, allocations: 338.8 kB / 256.6 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.01606, allocations: 182.8 kB / 256.8 MB, free: 1.383 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.01626, allocations: 235 kB / 257 MB, free: 1.113 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003753/0.01664, allocations: 428.4 kB / 257.5 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.01664, allocations: 0 / 257.5 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004979/0.01714, allocations: 483.1 kB / 257.9 MB, free: 104 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.01726, allocations: 138.7 kB / 258.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.01727, allocations: 0 / 258.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.01729, allocations: 7.984 kB / 258.1 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.223e-05/0.01738, allocations: 11.94 kB / 258.1 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.01738, allocations: 0 / 258.1 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.01756, allocations: 23.94 kB / 258.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.01768, allocations: 103.9 kB / 258.2 MB, free: 15.8 MB / 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.0005887/0.01827, allocations: 493.7 kB / 258.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.487e-05/0.01836, allocations: 63.94 kB / 258.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002082/0.01857, allocations: 110.4 kB / 258.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/0.01858, allocations: 4 kB / 258.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.01858, allocations: 0 / 258.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.01858, allocations: 0 / 258.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.01906, allocations: 309.4 kB / 259.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.01906, allocations: 0 / 259.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.973e-05/0.01912, allocations: 15.98 kB / 259.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005478/0.01967, allocations: 281.2 kB / 259.5 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.01967, allocations: 3.984 kB / 259.5 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.01971, allocations: 19.92 kB / 259.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.01972, allocations: 3.938 kB / 259.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01972, allocations: 0 / 259.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.02138, allocations: 0.5498 MB / 260 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.763e-05/0.02147, allocations: 23.98 kB / 260.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.02157, allocations: 12 kB / 260.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.866e-05/0.02166, allocations: 43.89 kB / 260.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.107e-05/0.02173, allocations: 99.86 kB / 260.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003943/0.02213, allocations: 328.3 kB / 260.5 MB, free: 13.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02213, allocations: 3.938 kB / 260.5 MB, free: 13.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002389/0.02237, allocations: 91.89 kB / 260.6 MB, free: 13.24 MB / 266.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.000135/0.0225, allocations: 116.4 kB / 260.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.023, allocations: 0.6913 MB / 261.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/0.02301, allocations: 8 kB / 261.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002568/0.02327, allocations: 492.6 kB / 261.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.02373, allocations: 264 kB / 262.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.02547, allocations: 1.386 MB / 263.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.02559, allocations: 143.8 kB / 263.7 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002531/0.02584, allocations: 161.1 kB / 263.9 MB, free: 9.758 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003963/0.02624, allocations: 243.2 kB / 264.1 MB, free: 9.52 MB / 266.7 MB Notification: Performance of SimCode: time 1.583e-06/0.02624, allocations: 4 kB / 264.1 MB, free: 9.516 MB / 266.7 MB Notification: Performance of Templates: time 0.00995/0.03619, allocations: 8.074 MB / 272.2 MB, free: 1.551 MB / 266.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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.619459501467645]