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.001558/0.001558, allocations: 104.6 kB / 21.18 MB, free: 0.7617 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.001786/0.001786, allocations: 193.2 kB / 24.48 MB, free: 4.164 MB / 14.72 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 1.468/1.468, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001562/0.001562, allocations: 47.92 kB / 371.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2397, allocations: 52.19 MB / 423.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004147/0.2439, allocations: 2.129 MB / 426 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.2463, allocations: 1.025 MB / 427 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2464, allocations: 7.938 kB / 427 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.2466, allocations: 39.64 kB / 427.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.2467, allocations: 51.53 kB / 427.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.2472, allocations: 127.8 kB / 427.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005334/0.2477, allocations: 407 kB / 427.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.2479, allocations: 63.58 kB / 427.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.249, allocations: 0.9709 MB / 428.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002946/0.2493, allocations: 207.2 kB / 428.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.223e-05/0.2494, allocations: 36 kB / 428.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.283e-05/0.2495, allocations: 40 kB / 429 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.2497, allocations: 155.4 kB / 429.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002883/0.2499, allocations: 294 kB / 429.4 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.251, allocations: 0.9818 MB / 430.4 MB, free: 8.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.251, allocations: 4 kB / 430.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.251, allocations: 0 / 430.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.251, allocations: 0 / 430.4 MB, free: 8.125 MB / 334.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.001412/0.2524, allocations: 1.07 MB / 431.5 MB, free: 6.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.2524, allocations: 12.03 kB / 431.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.2526, allocations: 84.42 kB / 431.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.2531, allocations: 371 kB / 431.9 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.2532, allocations: 16.38 kB / 431.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.41e-05/0.2532, allocations: 16.38 kB / 431.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006327/0.2539, allocations: 301.8 kB / 432.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2539, allocations: 0 / 432.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.239e-05/0.2539, allocations: 11.98 kB / 432.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.2539, allocations: 7.938 kB / 432.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004426/0.2544, allocations: 207.8 kB / 432.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.2558, allocations: 0.8581 MB / 433.3 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.2562, allocations: 174.5 kB / 433.5 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002801/0.2565, allocations: 120.8 kB / 433.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.2565, allocations: 0 / 433.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006201/0.2571, allocations: 384.9 kB / 434 MB, free: 4.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.2571, allocations: 0 / 434 MB, free: 4.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001403/0.2585, allocations: 0.7497 MB / 434.7 MB, free: 3.562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.2587, allocations: 170.2 kB / 434.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.2602, allocations: 1 MB / 435.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.2602, allocations: 37.7 kB / 435.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.2604, allocations: 157.9 kB / 436.1 MB, free: 2.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.895e-05/0.2605, allocations: 55.58 kB / 436.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.2607, allocations: 169.3 kB / 436.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.2609, allocations: 338.8 kB / 436.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.2611, allocations: 123.9 kB / 436.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.2614, allocations: 156.2 kB / 436.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006367/0.2621, allocations: 477.7 kB / 437.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2621, allocations: 0 / 437.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001088/0.2632, allocations: 0.5859 MB / 438 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.2633, allocations: 130.8 kB / 438.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2633, allocations: 0 / 438.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.2633, allocations: 4 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.557e-05/0.2634, allocations: 19.92 kB / 438.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2634, allocations: 3.938 kB / 438.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.2637, allocations: 23.98 kB / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.2638, allocations: 115.9 kB / 438.3 MB, free: 15.83 MB / 350.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.0006663/0.2645, allocations: 0.5301 MB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.2646, allocations: 83.48 kB / 438.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002014/0.2648, allocations: 126.4 kB / 439 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.2648, allocations: 8.125 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2648, allocations: 4 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.2648, allocations: 3.984 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007661/0.2656, allocations: 0.5898 MB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2656, allocations: 0 / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.203e-05/0.2656, allocations: 15.92 kB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.2656, allocations: 4 kB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.932e-05/0.2657, allocations: 23.98 kB / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2657, allocations: 96 / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2657, allocations: 7.938 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.2668, allocations: 0.7116 MB / 440.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008934/0.2677, allocations: 0.4969 MB / 440.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.2678, allocations: 20 kB / 440.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/0.268, allocations: 19.98 kB / 440.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.2682, allocations: 44 kB / 440.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.2683, allocations: 127.8 kB / 441.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001075/0.2694, allocations: 0.729 MB / 441.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2694, allocations: 0 / 441.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004078/0.2698, allocations: 91.95 kB / 441.9 MB, free: 12.08 MB / 350.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.0002346/0.2701, allocations: 126.8 kB / 442 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.2711, allocations: 0.5443 MB / 442.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2711, allocations: 0 / 442.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004986/0.2716, allocations: 393.5 kB / 442.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008314/0.2724, allocations: 204.7 kB / 443.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.2749, allocations: 1.404 MB / 444.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007742/0.2757, allocations: 0.9635 MB / 445.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000258/0.2759, allocations: 99.22 kB / 445.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2759, allocations: 3.938 kB / 445.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of Templates: time 0.008873/0.2848, allocations: 5.418 MB / 451 MB, free: 2.75 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/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: 8.105744487140328]