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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 46.81 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1211, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003261/0.1244, allocations: 2.099 MB / 352.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.1265, allocations: 1.025 MB / 353.3 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.1267, allocations: 4 kB / 353.3 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.1269, allocations: 35.59 kB / 353.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.127, allocations: 51.58 kB / 353.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.1274, allocations: 122.4 kB / 353.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004506/0.1279, allocations: 411.1 kB / 353.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.1281, allocations: 115.1 kB / 354 MB, free: 472 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008544/0.1289, allocations: 0.9397 MB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.1292, allocations: 195.2 kB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.1293, allocations: 32 kB / 355.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.671e-05/0.1294, allocations: 36 kB / 355.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.1296, allocations: 167.3 kB / 355.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002554/0.1299, allocations: 286.1 kB / 355.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007836/0.1306, allocations: 0.9619 MB / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1307, allocations: 0 / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1307, allocations: 0 / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.1307, allocations: 0 / 356.6 MB, free: 13.85 MB / 302.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.001355/0.132, allocations: 1.118 MB / 357.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.1321, allocations: 12.03 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.014e-05/0.1322, allocations: 50.73 kB / 357.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.1323, allocations: 80 kB / 357.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.1328, allocations: 432 kB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.953e-05/0.1329, allocations: 20.38 kB / 358.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.41e-05/0.1329, allocations: 20.38 kB / 358.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/0.1335, allocations: 301.5 kB / 358.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1336, allocations: 0 / 358.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.1336, allocations: 16 kB / 358.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1336, allocations: 4 kB / 358.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004426/0.1341, allocations: 204.4 kB / 358.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.1354, allocations: 0.9017 MB / 359.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/0.1358, allocations: 214.5 kB / 359.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002891/0.1361, allocations: 156.8 kB / 360.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.1362, allocations: 4 kB / 360.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005528/0.1367, allocations: 385.9 kB / 360.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.994e-06/0.1367, allocations: 0 / 360.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001385/0.1381, allocations: 0.7487 MB / 361.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.791e-05/0.1382, allocations: 170.2 kB / 361.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.1395, allocations: 1 MB / 362.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.1396, allocations: 33.7 kB / 362.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1397, allocations: 153.8 kB / 362.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.617e-05/0.1398, allocations: 55.27 kB / 362.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/0.14, allocations: 173 kB / 362.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1402, allocations: 338.7 kB / 363.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.1404, allocations: 120 kB / 363.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.1407, allocations: 172.7 kB / 363.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000595/0.1413, allocations: 485.7 kB / 363.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1413, allocations: 96 / 363.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009411/0.1423, allocations: 0.5858 MB / 364.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.632e-05/0.1424, allocations: 134.8 kB / 364.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1424, allocations: 0 / 364.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1424, allocations: 4 kB / 364.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.194e-05/0.1425, allocations: 12 kB / 364.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.1425, allocations: 0 / 364.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.1428, allocations: 27.95 kB / 364.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.1429, allocations: 111.9 kB / 364.8 MB, free: 5.223 MB / 302.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.0005759/0.1435, allocations: 0.5336 MB / 365.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.1436, allocations: 75.16 kB / 365.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.1438, allocations: 138.4 kB / 365.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1438, allocations: 0 / 365.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1438, allocations: 0 / 365.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1438, allocations: 0 / 365.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006943/0.1445, allocations: 0.6296 MB / 366.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1445, allocations: 0 / 366.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.868e-05/0.1446, allocations: 8 kB / 366.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.1446, allocations: 4 kB / 366.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-05/0.1447, allocations: 23.92 kB / 366.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1447, allocations: 4 kB / 366.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1447, allocations: 0 / 366.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.1458, allocations: 0.7096 MB / 366.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005942/0.1464, allocations: 499.6 kB / 367.4 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.1465, allocations: 20 kB / 367.4 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.1467, allocations: 15.98 kB / 367.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.1468, allocations: 51.95 kB / 367.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.147, allocations: 111.9 kB / 367.6 MB, free: 2.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009012/0.1479, allocations: 0.7328 MB / 368.3 MB, free: 1.535 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1479, allocations: 4 kB / 368.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003712/0.1482, allocations: 95.84 kB / 368.4 MB, free: 1.438 MB / 302.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.001368/0.1496, allocations: 1.291 MB / 369.7 MB, free: 92 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1404/0.29, allocations: 0.654 MB / 370.3 MB, free: 25.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.29, allocations: 0.625 kB / 370.3 MB, free: 25.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005013/0.2905, allocations: 0.5296 MB / 370.9 MB, free: 25.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008704/0.2914, allocations: 201.2 kB / 371.1 MB, free: 25.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005488/0.2969, allocations: 4.506 MB / 375.6 MB, free: 23.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.2975, allocations: 0.969 MB / 376.5 MB, free: 22.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003038/0.2978, allocations: 163.8 kB / 376.7 MB, free: 22.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.298, allocations: 129.8 kB / 376.8 MB, free: 22.09 MB / 302.1 MB Notification: Performance of SimCode: time 1.383e-06/0.298, allocations: 0 / 376.8 MB, free: 22.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.3279, allocations: 10.19 MB / 387 MB, free: 18.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/7.825, allocations: 13.55 kB / 387 MB, free: 18.95 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches