Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 189.2 kB / 20.73 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 44.06 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1108, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004444/0.1152, allocations: 2.118 MB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.1183, allocations: 1.025 MB / 420.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.1184, allocations: 0 / 420.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.1186, allocations: 39.64 kB / 421 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.1188, allocations: 59.52 kB / 421 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.1192, allocations: 123.8 kB / 421.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000631/0.1198, allocations: 391.1 kB / 421.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.1201, allocations: 83.08 kB / 421.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.1215, allocations: 0.9592 MB / 422.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.1219, allocations: 215.1 kB / 422.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.122, allocations: 36 kB / 422.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.114e-05/0.1221, allocations: 32 kB / 422.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.1223, allocations: 163.3 kB / 423 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.1227, allocations: 290.1 kB / 423.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.124, allocations: 0.9727 MB / 424.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.124, allocations: 0 / 424.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.124, allocations: 3.938 kB / 424.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.124, allocations: 0 / 424.3 MB, free: 6.102 MB / 350.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.001354/0.1254, allocations: 1.152 MB / 425.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.1254, allocations: 12.03 kB / 425.4 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.036e-05/0.1255, allocations: 58.67 kB / 425.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.1256, allocations: 84.42 kB / 425.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005398/0.1261, allocations: 436.8 kB / 426 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.1262, allocations: 16.38 kB / 426 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/0.1262, allocations: 20.38 kB / 426 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000562/0.1268, allocations: 297.6 kB / 426.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.1268, allocations: 0 / 426.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.824e-05/0.1268, allocations: 12 kB / 426.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1268, allocations: 4 kB / 426.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.1272, allocations: 208.4 kB / 426.5 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.1286, allocations: 0.8941 MB / 427.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004041/0.129, allocations: 178.5 kB / 427.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.1292, allocations: 120.8 kB / 427.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.1292, allocations: 0 / 427.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005698/0.1298, allocations: 381.9 kB / 428.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.1298, allocations: 0 / 428.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001298/0.1311, allocations: 0.7506 MB / 428.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.1312, allocations: 174.2 kB / 429 MB, free: 1.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.1325, allocations: 0.9961 MB / 430 MB, free: 44 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.1325, allocations: 37.7 kB / 430.1 MB, free: 0 / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1327, allocations: 161.9 kB / 430.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.219e-05/0.1327, allocations: 59.56 kB / 430.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.1329, allocations: 165.3 kB / 430.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1331, allocations: 342.8 kB / 430.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.1333, allocations: 120 kB / 430.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.1336, allocations: 164.2 kB / 431 MB, free: 14.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005826/0.1342, allocations: 477.7 kB / 431.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1342, allocations: 0 / 431.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009373/0.1351, allocations: 0.5859 MB / 432.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.1352, allocations: 134.8 kB / 432.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1353, allocations: 0 / 432.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1353, allocations: 4.031 kB / 432.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.967e-05/0.1353, allocations: 23.98 kB / 432.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.1354, allocations: 8 kB / 432.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.1356, allocations: 19.92 kB / 432.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.1357, allocations: 111.9 kB / 432.4 MB, free: 13.5 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.0005793/0.1363, allocations: 0.5226 MB / 432.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1364, allocations: 91.47 kB / 433 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.1365, allocations: 122.5 kB / 433.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1366, allocations: 3.938 kB / 433.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1366, allocations: 4 kB / 433.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1366, allocations: 0 / 433.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007025/0.1373, allocations: 0.6297 MB / 433.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1373, allocations: 0 / 433.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-05/0.1373, allocations: 15.92 kB / 433.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.1373, allocations: 0 / 433.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.593e-05/0.1374, allocations: 27.98 kB / 433.8 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1374, allocations: 0 / 433.8 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1374, allocations: 4 kB / 433.8 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.1384, allocations: 0.7131 MB / 434.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007155/0.1391, allocations: 0.4922 MB / 435 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.504e-05/0.1392, allocations: 20 kB / 435 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.1394, allocations: 19.98 kB / 435 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.1395, allocations: 52.02 kB / 435.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.1397, allocations: 119.9 kB / 435.2 MB, free: 10.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009371/0.1406, allocations: 0.7329 MB / 436 MB, free: 9.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1406, allocations: 0 / 436 MB, free: 9.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003366/0.1409, allocations: 91.95 kB / 436 MB, free: 9.711 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.001458/0.1424, allocations: 1.297 MB / 437.3 MB, free: 8.355 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008264/0.1432, allocations: 0.5365 MB / 437.9 MB, free: 7.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1432, allocations: 0 / 437.9 MB, free: 7.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004789/0.1437, allocations: 393.5 kB / 438.3 MB, free: 7.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007448/0.1445, allocations: 190.5 kB / 438.4 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006222/0.1507, allocations: 4.543 MB / 443 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006837/0.1514, allocations: 0.9596 MB / 443.9 MB, free: 1.488 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000322/0.1517, allocations: 173.1 kB / 444.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.1519, allocations: 139.2 kB / 444.3 MB, free: 1.184 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1519, allocations: 0 / 444.3 MB, free: 1.184 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2262/0.3781, allocations: 10.27 MB / 454.5 MB, free: 30.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.421, allocations: 7.641 kB / 454.5 MB, free: 30.16 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.832190155051649]