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.0009661/0.0009661, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.0009294/0.0009294, allocations: 169.8 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.8915/0.8915, allocations: 158.6 MB / 187.2 MB, free: 2.5 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.693e-06/1.693e-06, allocations: 0 / 251 MB, free: 3.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.318e-05, allocations: 5.406 kB / 251 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002577/0.0026, allocations: 2.075 MB / 253.1 MB, free: 1.492 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.004698, allocations: 1.038 MB / 254.2 MB, free: 456 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.004827, allocations: 7.938 kB / 254.2 MB, free: 448 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002188/0.005046, allocations: 35.66 kB / 254.2 MB, free: 412 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.005148, allocations: 55.52 kB / 254.3 MB, free: 356 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005218/0.00567, allocations: 135.7 kB / 254.4 MB, free: 220 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005894/0.006259, allocations: 407 kB / 254.8 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.006476, allocations: 63.64 kB / 254.9 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008187/0.007295, allocations: 1.025 MB / 255.9 MB, free: 14.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.007503, allocations: 179.5 kB / 256.1 MB, free: 14.55 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.007567, allocations: 32 kB / 256.1 MB, free: 14.52 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.622e-05/0.007624, allocations: 36 kB / 256.1 MB, free: 14.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.007763, allocations: 167.3 kB / 256.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.00791, allocations: 139.4 kB / 256.4 MB, free: 14.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.008483, allocations: 0.6579 MB / 257.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.008486, allocations: 0 / 257.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.008488, allocations: 0 / 257.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.008497, allocations: 4 kB / 257.1 MB, free: 13.52 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.001204/0.009701, allocations: 1.217 MB / 258.3 MB, free: 12.24 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.009754, allocations: 15.98 kB / 258.3 MB, free: 12.22 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.009879, allocations: 100.4 kB / 258.4 MB, free: 12.12 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.01021, allocations: 381 kB / 258.8 MB, free: 11.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.305e-05/0.01025, allocations: 16.31 kB / 258.8 MB, free: 11.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.01029, allocations: 20.38 kB / 258.8 MB, free: 11.69 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004735/0.01076, allocations: 381.3 kB / 259.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.01077, allocations: 4.188 kB / 259.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.0108, allocations: 12.31 kB / 259.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.01081, allocations: 11.94 kB / 259.2 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.01106, allocations: 242.7 kB / 259.5 MB, free: 10.99 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.01213, allocations: 0.8931 MB / 260.3 MB, free: 10.06 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.01245, allocations: 277.7 kB / 260.6 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/0.01296, allocations: 214.4 kB / 260.8 MB, free: 9.516 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.01298, allocations: 4 kB / 260.8 MB, free: 9.512 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003614/0.01334, allocations: 0.4907 MB / 261.3 MB, free: 8.957 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.974e-06/0.01334, allocations: 96 / 261.3 MB, free: 8.957 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009398/0.01428, allocations: 0.9153 MB / 262.2 MB, free: 7.961 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.344e-05/0.01438, allocations: 174.2 kB / 262.4 MB, free: 7.754 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.01554, allocations: 1.159 MB / 263.6 MB, free: 6.582 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.01557, allocations: 41.69 kB / 263.6 MB, free: 6.535 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.01568, allocations: 208.6 kB / 263.8 MB, free: 6.324 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/0.01574, allocations: 59.58 kB / 263.9 MB, free: 6.266 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.01588, allocations: 171 kB / 264 MB, free: 6.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.01602, allocations: 0.5079 MB / 264.5 MB, free: 5.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.0162, allocations: 214.7 kB / 264.8 MB, free: 5.336 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.01639, allocations: 261.2 kB / 265 MB, free: 5.035 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.01672, allocations: 455.8 kB / 265.5 MB, free: 4.52 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.01672, allocations: 7.938 kB / 265.5 MB, free: 4.512 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000561/0.01728, allocations: 0.663 MB / 266.1 MB, free: 3.793 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-05/0.01735, allocations: 145.4 kB / 266.3 MB, free: 3.629 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01736, allocations: 3.984 kB / 266.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.01737, allocations: 0 / 266.3 MB, free: 3.625 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.071e-05/0.01744, allocations: 19.92 kB / 266.3 MB, free: 3.605 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.01745, allocations: 4 kB / 266.3 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.01758, allocations: 12 kB / 266.3 MB, free: 3.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.558e-05/0.01766, allocations: 119.9 kB / 266.4 MB, free: 3.473 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.0003609/0.01802, allocations: 0.525 MB / 266.9 MB, free: 2.91 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.143e-05/0.0181, allocations: 107.5 kB / 267.1 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001231/0.01823, allocations: 106.5 kB / 267.2 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.01823, allocations: 0 / 267.2 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.01823, allocations: 0 / 267.2 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.01824, allocations: 0 / 267.2 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008158/0.01905, allocations: 0.6051 MB / 267.8 MB, free: 2.055 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.01906, allocations: 0 / 267.8 MB, free: 2.055 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.233e-05/0.01909, allocations: 11.98 kB / 267.8 MB, free: 2.043 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.01909, allocations: 7.938 kB / 267.8 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.672e-05/0.01913, allocations: 27.98 kB / 267.8 MB, free: 2.008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.01913, allocations: 4 kB / 267.8 MB, free: 2.004 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01913, allocations: 3.938 kB / 267.8 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006685/0.0198, allocations: 0.7986 MB / 268.6 MB, free: 1.129 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004732/0.02027, allocations: 476.8 kB / 269.1 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.073e-05/0.02033, allocations: 23.94 kB / 269.1 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.675e-05/0.02042, allocations: 12 kB / 269.1 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.02054, allocations: 39.94 kB / 269.2 MB, free: 0.582 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-05/0.02062, allocations: 119.9 kB / 269.3 MB, free: 476 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0006829/0.0213, allocations: 0.7639 MB / 270 MB, free: 15.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0213, allocations: 0 / 270 MB, free: 15.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002474/0.02155, allocations: 91.94 kB / 270.1 MB, free: 15.62 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.0001212/0.02167, allocations: 143.2 kB / 270.3 MB, free: 15.47 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005602/0.02223, allocations: 0.7486 MB / 271 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.02223, allocations: 0 / 271 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003007/0.02253, allocations: 0.5039 MB / 271.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.02302, allocations: 228.2 kB / 271.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.02442, allocations: 1.4 MB / 273.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.02453, allocations: 151.8 kB / 273.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000218/0.02475, allocations: 157.1 kB / 273.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.02487, allocations: 76.34 kB / 273.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.02487, allocations: 0 / 273.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of Templates: time 0.009251/0.03412, allocations: 8.298 MB / 281.8 MB, free: 3.672 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: 3.2083491743542254]