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.001323/0.001323, allocations: 104.8 kB / 16.62 MB, free: 6.812 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.001175/0.001175, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.446/1.446, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 47.27 kB / 300.2 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1122, allocations: 49.44 MB / 349.7 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004916/0.1172, allocations: 2.157 MB / 351.8 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.1196, allocations: 0.994 MB / 352.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.1199, allocations: 4 kB / 352.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002676/0.1202, allocations: 23.78 kB / 352.9 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.1205, allocations: 47.62 kB / 352.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005907/0.1211, allocations: 113.7 kB / 353 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007251/0.1218, allocations: 415 kB / 353.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002838/0.1221, allocations: 103.1 kB / 353.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.1233, allocations: 0.9397 MB / 354.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.1236, allocations: 207.2 kB / 354.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.1237, allocations: 32 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.244e-05/0.1238, allocations: 36 kB / 354.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.124, allocations: 163.4 kB / 354.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000306/0.1243, allocations: 286.1 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009735/0.1253, allocations: 0.9619 MB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1253, allocations: 0 / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1253, allocations: 0 / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.1253, allocations: 0 / 356.1 MB, free: 14.2 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.001967/0.1273, allocations: 1.121 MB / 357.3 MB, free: 13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.81e-05/0.1274, allocations: 16.03 kB / 357.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.1275, allocations: 50.73 kB / 357.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.1277, allocations: 83.94 kB / 357.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000604/0.1283, allocations: 436 kB / 357.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.883e-05/0.1283, allocations: 16.38 kB / 357.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.149e-05/0.1284, allocations: 20.38 kB / 357.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007177/0.1291, allocations: 301.5 kB / 358.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1292, allocations: 0 / 358.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.1292, allocations: 12 kB / 358.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.1292, allocations: 4 kB / 358.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004865/0.1297, allocations: 211.9 kB / 358.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.1313, allocations: 0.8939 MB / 359.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.1318, allocations: 218.5 kB / 359.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.1321, allocations: 152.8 kB / 359.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.1321, allocations: 0 / 359.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006031/0.1327, allocations: 394 kB / 360 MB, free: 10.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.1328, allocations: 4 kB / 360 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001448/0.1342, allocations: 0.7331 MB / 360.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.1344, allocations: 182.1 kB / 360.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/0.1359, allocations: 1 MB / 361.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.253e-05/0.136, allocations: 37.7 kB / 362 MB, free: 8.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1361, allocations: 149.8 kB / 362.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.922e-05/0.1362, allocations: 59.25 kB / 362.2 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002475/0.1365, allocations: 165.1 kB / 362.3 MB, free: 7.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1366, allocations: 342.8 kB / 362.7 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.1369, allocations: 119.9 kB / 362.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.1372, allocations: 172.2 kB / 363 MB, free: 7.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006001/0.1378, allocations: 477.7 kB / 363.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1378, allocations: 0 / 363.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001009/0.1389, allocations: 0.5742 MB / 364 MB, free: 5.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.139, allocations: 138.8 kB / 364.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.139, allocations: 0 / 364.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.139, allocations: 0 / 364.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.614e-05/0.1391, allocations: 19.92 kB / 364.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.1391, allocations: 4 kB / 364.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.1395, allocations: 35.88 kB / 364.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.1396, allocations: 108 kB / 364.3 MB, free: 5.562 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.0007314/0.1403, allocations: 0.5336 MB / 364.8 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.1405, allocations: 79.06 kB / 364.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.1407, allocations: 126.4 kB / 365 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.1407, allocations: 8.109 kB / 365 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1408, allocations: 7.938 kB / 365 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1408, allocations: 4 kB / 365 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008278/0.1416, allocations: 0.618 MB / 365.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.1416, allocations: 4 kB / 365.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.686e-05/0.1417, allocations: 19.92 kB / 365.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1417, allocations: 0 / 365.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.499e-05/0.1418, allocations: 23.98 kB / 365.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1418, allocations: 0 / 365.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1418, allocations: 0 / 365.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.143, allocations: 0.7095 MB / 366.4 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006797/0.1437, allocations: 499.7 kB / 366.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.1438, allocations: 24 kB / 366.9 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.144, allocations: 27.88 kB / 367 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.1442, allocations: 51.95 kB / 367 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/0.1444, allocations: 111.9 kB / 367.1 MB, free: 2.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.1454, allocations: 0.729 MB / 367.9 MB, free: 1.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1454, allocations: 0 / 367.9 MB, free: 1.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004295/0.1459, allocations: 87.94 kB / 367.9 MB, free: 1.77 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.001579/0.1475, allocations: 1.299 MB / 369.2 MB, free: 424 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1809/0.3284, allocations: 0.651 MB / 369.9 MB, free: 26.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.3284, allocations: 0 / 369.9 MB, free: 26.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006828/0.3291, allocations: 0.5282 MB / 370.4 MB, free: 25.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.3303, allocations: 193.4 kB / 370.6 MB, free: 25.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006973/0.3373, allocations: 4.661 MB / 375.3 MB, free: 23.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.3379, allocations: 0.9671 MB / 376.2 MB, free: 22.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003856/0.3383, allocations: 158.4 kB / 376.4 MB, free: 22.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.3385, allocations: 134.5 kB / 376.5 MB, free: 22.3 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3385, allocations: 0 / 376.5 MB, free: 22.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.3623, allocations: 10.04 MB / 386.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.3625, allocations: 198.2 kB / 386.7 MB, free: 19.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.056/2.418, allocations: 0 / 386.7 MB, free: 19.06 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