Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001797/0.001797, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 14.72 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.002199/0.002199, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 254.8 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 43.94 kB / 374.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1018, allocations: 53.33 MB / 427.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003615/0.1054, allocations: 2.127 MB / 429.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.1079, allocations: 1.056 MB / 430.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.96e-05/0.108, allocations: 7.938 kB / 430.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.1082, allocations: 39.64 kB / 430.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.1083, allocations: 51.53 kB / 430.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.1087, allocations: 127.8 kB / 430.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004961/0.1092, allocations: 395 kB / 431.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.1094, allocations: 75.12 kB / 431.3 MB, free: 420 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001062/0.1105, allocations: 0.9709 MB / 432.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002684/0.1107, allocations: 203.1 kB / 432.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.621e-05/0.1108, allocations: 36 kB / 432.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.736e-05/0.1109, allocations: 32 kB / 432.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.111, allocations: 159.4 kB / 432.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.1113, allocations: 302 kB / 433 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009718/0.1123, allocations: 0.9766 MB / 434 MB, free: 13.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1123, allocations: 0 / 434 MB, free: 13.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1123, allocations: 0 / 434 MB, free: 13.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.1123, allocations: 0 / 434 MB, free: 13.74 MB / 366.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.00145/0.1138, allocations: 1.153 MB / 435.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1138, allocations: 8.031 kB / 435.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.114, allocations: 84.42 kB / 435.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005362/0.1145, allocations: 428.8 kB / 435.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/0.1145, allocations: 16.38 kB / 435.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.751e-05/0.1146, allocations: 24.36 kB / 435.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.1153, allocations: 305.5 kB / 436 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.1153, allocations: 0 / 436 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.86e-05/0.1153, allocations: 16 kB / 436 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.1153, allocations: 4 kB / 436 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004693/0.1158, allocations: 204.4 kB / 436.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.1172, allocations: 0.8941 MB / 437.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000456/0.1176, allocations: 178.5 kB / 437.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.1179, allocations: 116.8 kB / 437.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.118, allocations: 4 kB / 437.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000658/0.1186, allocations: 378.1 kB / 437.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.1186, allocations: 0 / 437.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.001501/0.1201, allocations: 0.7527 MB / 438.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.1203, allocations: 178.2 kB / 438.7 MB, free: 8.746 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.1217, allocations: 0.9961 MB / 439.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.273e-05/0.1217, allocations: 41.69 kB / 439.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1219, allocations: 157.9 kB / 439.9 MB, free: 7.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.757e-05/0.122, allocations: 59.53 kB / 440 MB, free: 7.473 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002633/0.1222, allocations: 165.3 kB / 440.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.1224, allocations: 338.8 kB / 440.5 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/0.1227, allocations: 124 kB / 440.6 MB, free: 6.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003281/0.1231, allocations: 164.2 kB / 440.7 MB, free: 6.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006687/0.1237, allocations: 473.7 kB / 441.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1237, allocations: 4 kB / 441.2 MB, free: 6.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001121/0.1249, allocations: 0.5821 MB / 441.8 MB, free: 5.523 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.125, allocations: 130.8 kB / 441.9 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.125, allocations: 4 kB / 441.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.125, allocations: 0 / 441.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1251, allocations: 19.94 kB / 441.9 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.1251, allocations: 4.078 kB / 441.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.1254, allocations: 23.83 kB / 442 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.1255, allocations: 119.9 kB / 442.1 MB, free: 5.203 MB / 366.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.000728/0.1262, allocations: 0.5377 MB / 442.6 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.1264, allocations: 75.53 kB / 442.7 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002216/0.1266, allocations: 130.4 kB / 442.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1266, allocations: 0 / 442.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1266, allocations: 0 / 442.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1266, allocations: 7.938 kB / 442.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008184/0.1274, allocations: 0.6258 MB / 443.5 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1274, allocations: 128 / 443.5 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.072e-05/0.1275, allocations: 19.94 kB / 443.5 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.1275, allocations: 3.984 kB / 443.5 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.1275, allocations: 27.98 kB / 443.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1275, allocations: 0 / 443.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1275, allocations: 0 / 443.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.1288, allocations: 0.7022 MB / 444.2 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007266/0.1295, allocations: 0.5078 MB / 444.7 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.1296, allocations: 20 kB / 444.7 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.1298, allocations: 19.98 kB / 444.8 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.13, allocations: 47.89 kB / 444.8 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.1301, allocations: 115.9 kB / 444.9 MB, free: 2.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001071/0.1312, allocations: 0.729 MB / 445.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1312, allocations: 0 / 445.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004026/0.1316, allocations: 84 kB / 445.7 MB, free: 1.418 MB / 366.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.0002296/0.1318, allocations: 142.7 kB / 445.9 MB, free: 1.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009698/0.1328, allocations: 0.5404 MB / 446.4 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1328, allocations: 0 / 446.4 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005162/0.1333, allocations: 397.6 kB / 446.8 MB, free: 248 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009155/0.1342, allocations: 197 kB / 447 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2081/0.3423, allocations: 1.41 MB / 448.4 MB, free: 24.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.3428, allocations: 0.968 MB / 449.4 MB, free: 23.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.343, allocations: 95.83 kB / 449.5 MB, free: 23.64 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.343, allocations: 1.344 kB / 449.5 MB, free: 23.64 MB / 366.1 MB Notification: Performance of Templates: time 0.01097/0.354, allocations: 5.438 MB / 454.9 MB, free: 23.27 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.258577981003327]