Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001603/0.001603, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.2 MB / 254.5 MB, free: 15.43 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.89 kB / 373.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1202, allocations: 53.31 MB / 426.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003604/0.1238, allocations: 2.128 MB / 428.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.1263, allocations: 1.052 MB / 429.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.1264, allocations: 3.938 kB / 429.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.1266, allocations: 39.59 kB / 429.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.1267, allocations: 59.52 kB / 429.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.1271, allocations: 123.8 kB / 430.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005225/0.1276, allocations: 399 kB / 430.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.1278, allocations: 73.31 kB / 430.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.1289, allocations: 0.9669 MB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002838/0.1292, allocations: 211.1 kB / 431.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.473e-05/0.1293, allocations: 36 kB / 431.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.791e-05/0.1293, allocations: 32 kB / 431.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.1295, allocations: 159.4 kB / 431.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002904/0.1298, allocations: 286.1 kB / 432.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.1308, allocations: 0.9767 MB / 433.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.1308, allocations: 0 / 433.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1308, allocations: 0 / 433.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1308, allocations: 0 / 433.2 MB, free: 14.49 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.001485/0.1323, allocations: 1.149 MB / 434.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.1324, allocations: 12.03 kB / 434.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.881e-05/0.1325, allocations: 54.73 kB / 434.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.1326, allocations: 88.42 kB / 434.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006581/0.1333, allocations: 436.8 kB / 434.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.1333, allocations: 20.36 kB / 434.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.516e-05/0.1334, allocations: 20.38 kB / 434.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006594/0.134, allocations: 305.3 kB / 435.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.134, allocations: 0 / 435.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.1341, allocations: 12 kB / 435.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.026e-06/0.1341, allocations: 4 kB / 435.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004625/0.1345, allocations: 203.9 kB / 435.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.1361, allocations: 0.8902 MB / 436.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004399/0.1366, allocations: 178.5 kB / 436.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002672/0.1368, allocations: 124.8 kB / 436.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.1369, allocations: 4 kB / 436.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006914/0.1375, allocations: 378.1 kB / 437 MB, free: 10.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.1375, allocations: 0 / 437 MB, free: 10.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.001341/0.1389, allocations: 0.7495 MB / 437.8 MB, free: 9.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.139, allocations: 170.2 kB / 437.9 MB, free: 9.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001386/0.1404, allocations: 1 MB / 438.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.1405, allocations: 41.7 kB / 439 MB, free: 8.371 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1406, allocations: 153.9 kB / 439.1 MB, free: 8.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.384e-05/0.1407, allocations: 63.62 kB / 439.2 MB, free: 8.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.1409, allocations: 173.3 kB / 439.4 MB, free: 7.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1411, allocations: 342.8 kB / 439.7 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.1414, allocations: 120 kB / 439.8 MB, free: 7.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.1416, allocations: 165.2 kB / 440 MB, free: 7.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006071/0.1423, allocations: 473.8 kB / 440.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1423, allocations: 0 / 440.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009694/0.1432, allocations: 0.5821 MB / 441 MB, free: 6.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.1433, allocations: 134.8 kB / 441.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.1433, allocations: 0 / 441.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1434, allocations: 4.062 kB / 441.1 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.714e-05/0.1435, allocations: 16 kB / 441.2 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1435, allocations: 4 kB / 441.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.1437, allocations: 23.88 kB / 441.2 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.1438, allocations: 115.9 kB / 441.3 MB, free: 5.883 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.0006964/0.1445, allocations: 0.5415 MB / 441.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.1446, allocations: 79.53 kB / 441.9 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.1448, allocations: 130.4 kB / 442.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1448, allocations: 0 / 442.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1449, allocations: 7.938 kB / 442.1 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.1449, allocations: 0 / 442.1 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007571/0.1456, allocations: 0.6258 MB / 442.7 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1456, allocations: 0 / 442.7 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.262e-05/0.1457, allocations: 8 kB / 442.7 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1457, allocations: 0 / 442.7 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-05/0.1457, allocations: 31.98 kB / 442.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1457, allocations: 128 / 442.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1457, allocations: 4 kB / 442.7 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.1468, allocations: 0.7143 MB / 443.4 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007522/0.1476, allocations: 0.5 MB / 443.9 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.1477, allocations: 20 kB / 444 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.1478, allocations: 19.98 kB / 444 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.148, allocations: 55.94 kB / 444 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.1481, allocations: 111.9 kB / 444.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009938/0.1491, allocations: 0.729 MB / 444.9 MB, free: 2.172 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1491, allocations: 0 / 444.9 MB, free: 2.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003674/0.1495, allocations: 88 kB / 445 MB, free: 2.086 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.001524/0.151, allocations: 1.282 MB / 446.2 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008742/0.1519, allocations: 0.5406 MB / 446.8 MB, free: 160 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1519, allocations: 3.938 kB / 446.8 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2139/0.3658, allocations: 391.2 kB / 447.2 MB, free: 24.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.3669, allocations: 194.8 kB / 447.4 MB, free: 24.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006364/0.3732, allocations: 4.541 MB / 451.9 MB, free: 23.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/0.3738, allocations: 0.9671 MB / 452.9 MB, free: 22.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004168/0.3742, allocations: 165.8 kB / 453 MB, free: 22.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.3744, allocations: 130.5 kB / 453.2 MB, free: 22.04 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3744, allocations: 1.094 kB / 453.2 MB, free: 22.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03871/0.4132, allocations: 10.27 MB / 463.4 MB, free: 20.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.52/8.933, allocations: 26.14 kB / 463.5 MB, free: 20.14 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 11.435790333896875]