Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001315/0.001315, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.001138/0.001138, allocations: 171.3 kB / 25.33 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9616/0.9616, allocations: 158.6 MB / 187.2 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 251 MB, free: 7.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.62e-05/2.805e-05, allocations: 2.312 kB / 251 MB, free: 7.496 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003511/0.003539, allocations: 2.073 MB / 253.1 MB, free: 5.41 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.005259, allocations: 1.038 MB / 254.2 MB, free: 4.363 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.005361, allocations: 3.938 kB / 254.2 MB, free: 4.359 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.005549, allocations: 43.64 kB / 254.2 MB, free: 4.316 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.005673, allocations: 55.52 kB / 254.3 MB, free: 4.262 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004993/0.006172, allocations: 139.7 kB / 254.4 MB, free: 4.125 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.0066, allocations: 391 kB / 254.8 MB, free: 3.742 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.006782, allocations: 71.62 kB / 254.8 MB, free: 3.672 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007546/0.007537, allocations: 1.029 MB / 255.9 MB, free: 2.641 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.007731, allocations: 171.5 kB / 256 MB, free: 2.473 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.996e-05/0.007791, allocations: 40 kB / 256.1 MB, free: 2.434 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.084e-05/0.007841, allocations: 32 kB / 256.1 MB, free: 2.402 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.007961, allocations: 171.3 kB / 256.3 MB, free: 2.234 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.008093, allocations: 147.4 kB / 256.4 MB, free: 2.09 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005208/0.008614, allocations: 0.6501 MB / 257.1 MB, free: 1.438 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.008621, allocations: 0 / 257.1 MB, free: 1.438 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.008624, allocations: 0 / 257.1 MB, free: 1.438 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.008636, allocations: 0 / 257.1 MB, free: 1.438 MB / 234.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.001145/0.009781, allocations: 1.221 MB / 258.3 MB, free: 156 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.009821, allocations: 11.98 kB / 258.3 MB, free: 144 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.009955, allocations: 100.4 kB / 258.4 MB, free: 44 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.01031, allocations: 381 kB / 258.8 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.801e-05/0.01035, allocations: 16.38 kB / 258.8 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.01038, allocations: 28.3 kB / 258.8 MB, free: 15.6 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004984/0.01088, allocations: 381.3 kB / 259.2 MB, free: 15.19 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.01089, allocations: 4.172 kB / 259.2 MB, free: 15.19 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.01092, allocations: 8.375 kB / 259.2 MB, free: 15.18 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.01094, allocations: 7.938 kB / 259.2 MB, free: 15.17 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.0112, allocations: 246.7 kB / 259.4 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.01224, allocations: 0.897 MB / 260.3 MB, free: 13.97 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.01257, allocations: 281.7 kB / 260.6 MB, free: 13.66 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.01274, allocations: 218.4 kB / 260.8 MB, free: 13.42 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.01275, allocations: 0 / 260.8 MB, free: 13.42 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000329/0.01308, allocations: 0.4935 MB / 261.3 MB, free: 12.86 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.01308, allocations: 0 / 261.3 MB, free: 12.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008253/0.01391, allocations: 0.9153 MB / 262.2 MB, free: 11.87 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/0.01398, allocations: 178.2 kB / 262.4 MB, free: 11.66 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.01505, allocations: 1.159 MB / 263.6 MB, free: 10.48 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.01508, allocations: 37.7 kB / 263.6 MB, free: 10.44 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.004e-05/0.01517, allocations: 200.6 kB / 263.8 MB, free: 10.24 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.458e-05/0.01523, allocations: 63.52 kB / 263.9 MB, free: 10.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.01537, allocations: 171 kB / 264 MB, free: 10 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.0155, allocations: 0.5118 MB / 264.5 MB, free: 9.477 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.01569, allocations: 218.7 kB / 264.8 MB, free: 9.238 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.01587, allocations: 261.2 kB / 265 MB, free: 8.938 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.01618, allocations: 443.9 kB / 265.5 MB, free: 8.434 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.01618, allocations: 7.938 kB / 265.5 MB, free: 8.426 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000593/0.01677, allocations: 0.6744 MB / 266.1 MB, free: 7.695 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/0.01685, allocations: 130.8 kB / 266.3 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.01685, allocations: 0 / 266.3 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.01687, allocations: 4 kB / 266.3 MB, free: 7.539 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.419e-05/0.01694, allocations: 24 kB / 266.3 MB, free: 7.516 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.01695, allocations: 7.969 kB / 266.3 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.01709, allocations: 16 kB / 266.3 MB, free: 7.492 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.778e-05/0.01718, allocations: 119.9 kB / 266.4 MB, free: 7.375 MB / 250.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.0003836/0.01756, allocations: 0.5249 MB / 267 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.029e-05/0.01765, allocations: 103.5 kB / 267.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.01778, allocations: 110.5 kB / 267.2 MB, free: 6.598 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.01779, allocations: 4 kB / 267.2 MB, free: 6.594 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.01779, allocations: 0 / 267.2 MB, free: 6.594 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.01779, allocations: 0 / 267.2 MB, free: 6.594 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005807/0.01838, allocations: 0.6013 MB / 267.8 MB, free: 5.957 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01838, allocations: 0 / 267.8 MB, free: 5.957 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.088e-05/0.01841, allocations: 12 kB / 267.8 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.01841, allocations: 7.922 kB / 267.8 MB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.01845, allocations: 23.98 kB / 267.8 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.01845, allocations: 0 / 267.8 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.01846, allocations: 4 kB / 267.8 MB, free: 5.91 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006822/0.01914, allocations: 0.8102 MB / 268.6 MB, free: 5.027 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004905/0.01963, allocations: 464.8 kB / 269.1 MB, free: 4.566 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.81e-05/0.01971, allocations: 31.92 kB / 269.1 MB, free: 4.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.861e-05/0.0198, allocations: 12 kB / 269.1 MB, free: 4.523 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.01994, allocations: 43.94 kB / 269.2 MB, free: 4.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-05/0.02001, allocations: 115.9 kB / 269.3 MB, free: 4.367 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0006752/0.02069, allocations: 0.7639 MB / 270 MB, free: 3.609 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.02069, allocations: 0 / 270 MB, free: 3.609 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002425/0.02093, allocations: 91.89 kB / 270.1 MB, free: 3.52 MB / 250.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.0001215/0.02105, allocations: 135.2 kB / 270.3 MB, free: 3.379 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.02164, allocations: 0.7487 MB / 271 MB, free: 2.527 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.02165, allocations: 128 / 271 MB, free: 2.527 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003222/0.02197, allocations: 0.5155 MB / 271.5 MB, free: 1.934 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000587/0.02255, allocations: 227.4 kB / 271.7 MB, free: 1.711 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.02398, allocations: 1.392 MB / 273.1 MB, free: 268 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.0241, allocations: 155.7 kB / 273.3 MB, free: 92 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.02434, allocations: 165.2 kB / 273.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.02446, allocations: 76.34 kB / 273.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of SimCode: time 1.563e-06/0.02447, allocations: 0 / 273.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of Templates: time 0.009872/0.03434, allocations: 8.72 MB / 282.2 MB, free: 7.164 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.9643710968084633]