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.001957/0.001957, allocations: 103.5 kB / 21.74 MB, free: 2.691 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.001898/0.001898, allocations: 166.2 kB / 25.03 MB, free: 8.418 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 1.374/1.374, allocations: 158.6 MB / 186.8 MB, free: 2.887 MB / 170.7 MB " [Timeout remaining time 178] 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.393e-06/1.393e-06, allocations: 0 / 250.4 MB, free: 3.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.799e-05/2.939e-05, allocations: 6.312 kB / 250.4 MB, free: 3.934 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003913/0.003943, allocations: 2.044 MB / 252.4 MB, free: 1.879 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00248/0.006422, allocations: 1.026 MB / 253.4 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.771e-05/0.00652, allocations: 4 kB / 253.4 MB, free: 0.8398 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.006701, allocations: 43.58 kB / 253.5 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.006827, allocations: 55.52 kB / 253.5 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004274/0.007254, allocations: 135.7 kB / 253.7 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005089/0.007763, allocations: 403 kB / 254.1 MB, free: 220 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.00796, allocations: 71.52 kB / 254.1 MB, free: 148 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.009206, allocations: 1.026 MB / 255.2 MB, free: 15.12 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.009499, allocations: 179.5 kB / 255.3 MB, free: 14.94 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.009621, allocations: 36 kB / 255.4 MB, free: 14.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.00973, allocations: 36 kB / 255.4 MB, free: 14.87 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00021/0.00994, allocations: 159.4 kB / 255.6 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002463/0.01019, allocations: 151.4 kB / 255.7 MB, free: 14.57 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.01136, allocations: 0.9852 MB / 256.7 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.01136, allocations: 0 / 256.7 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.01136, allocations: 4 kB / 256.7 MB, free: 13.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.01137, allocations: 0 / 256.7 MB, free: 13.57 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.001811/0.01319, allocations: 1.295 MB / 258 MB, free: 12.21 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.01322, allocations: 11.98 kB / 258 MB, free: 12.2 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004207/0.01364, allocations: 100.4 kB / 258.1 MB, free: 12.11 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006134/0.01426, allocations: 389 kB / 258.5 MB, free: 11.7 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.206e-05/0.0143, allocations: 16.38 kB / 258.5 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.035e-05/0.01436, allocations: 20.38 kB / 258.5 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007448/0.01511, allocations: 404.6 kB / 258.9 MB, free: 11.23 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.01512, allocations: 192 / 258.9 MB, free: 11.23 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.01516, allocations: 12.38 kB / 258.9 MB, free: 11.22 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.01517, allocations: 7.938 kB / 258.9 MB, free: 11.21 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.0157, allocations: 298.7 kB / 259.2 MB, free: 10.9 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.01779, allocations: 1.071 MB / 260.3 MB, free: 9.785 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006168/0.01841, allocations: 337.7 kB / 260.6 MB, free: 9.418 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004115/0.01882, allocations: 270.4 kB / 260.9 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.01885, allocations: 4 kB / 260.9 MB, free: 9.121 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007699/0.01962, allocations: 0.5454 MB / 261.4 MB, free: 8.512 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.124e-06/0.01963, allocations: 4 kB / 261.4 MB, free: 8.508 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.001842/0.02147, allocations: 1.033 MB / 262.5 MB, free: 7.395 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.02162, allocations: 178.2 kB / 262.6 MB, free: 7.184 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002346/0.02396, allocations: 1.393 MB / 264 MB, free: 5.777 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.755e-05/0.02405, allocations: 29.7 kB / 264.1 MB, free: 5.742 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/0.02426, allocations: 216.6 kB / 264.3 MB, free: 5.523 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.02437, allocations: 75.52 kB / 264.4 MB, free: 5.449 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.02467, allocations: 191 kB / 264.5 MB, free: 5.254 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0005844/0.02525, allocations: 0.5274 MB / 265.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004158/0.02567, allocations: 258.8 kB / 265.3 MB, free: 4.438 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/0.02613, allocations: 329.2 kB / 265.6 MB, free: 4.07 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007483/0.02688, allocations: 0.5116 MB / 266.2 MB, free: 3.488 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.02689, allocations: 0 / 266.2 MB, free: 3.488 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001307/0.02819, allocations: 0.7566 MB / 266.9 MB, free: 2.676 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.02833, allocations: 138.8 kB / 267 MB, free: 2.516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.02834, allocations: 0 / 267 MB, free: 2.516 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.02836, allocations: 4 kB / 267 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.304e-05/0.02845, allocations: 19.92 kB / 267.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.02846, allocations: 192 / 267.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.02871, allocations: 31.92 kB / 267.1 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.02885, allocations: 111.9 kB / 267.2 MB, free: 2.352 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.0007511/0.0296, allocations: 0.5446 MB / 267.8 MB, free: 1.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.02977, allocations: 95.47 kB / 267.8 MB, free: 1.676 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.02999, allocations: 110.5 kB / 268 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.02999, allocations: 4 kB / 268 MB, free: 1.562 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.03, allocations: 0 / 268 MB, free: 1.562 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.03, allocations: 3.984 kB / 268 MB, free: 1.559 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/0.03129, allocations: 0.7652 MB / 268.7 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.03129, allocations: 0 / 268.7 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.204e-05/0.03134, allocations: 11.98 kB / 268.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.03134, allocations: 3.938 kB / 268.7 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-05/0.0314, allocations: 23.98 kB / 268.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.0314, allocations: 0 / 268.8 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.0314, allocations: 4 kB / 268.8 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001487/0.03289, allocations: 0.9079 MB / 269.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008931/0.03378, allocations: 472.8 kB / 270.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.0339, allocations: 27.94 kB / 270.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.03405, allocations: 11.98 kB / 270.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.03424, allocations: 55.95 kB / 270.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.03438, allocations: 111.9 kB / 270.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001343/0.03573, allocations: 0.846 MB / 271.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03573, allocations: 0 / 271.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004017/0.03613, allocations: 95.89 kB / 271.3 MB, free: 14.13 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.0002025/0.03633, allocations: 139.2 kB / 271.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.03788, allocations: 0.8815 MB / 272.3 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.03789, allocations: 0 / 272.3 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007301/0.03862, allocations: 0.5977 MB / 272.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009426/0.03956, allocations: 239.4 kB / 273.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.04206, allocations: 1.447 MB / 274.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/0.0426, allocations: 349.1 kB / 274.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003745/0.04297, allocations: 161.1 kB / 275.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.04317, allocations: 76.34 kB / 275.1 MB, free: 9.992 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.04317, allocations: 0 / 275.1 MB, free: 9.992 MB / 266.7 MB Notification: Performance of Templates: time 0.01721/0.06038, allocations: 8.279 MB / 283.4 MB, free: 1.727 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.604513471014798]