Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_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.001202/0.001202, allocations: 95.92 kB / 17.3 MB, free: 6.387 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.001109/0.001109, allocations: 177.1 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.787/1.787, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004562/0.0004564, allocations: 12 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1013, allocations: 47.58 MB / 329 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002394/0.1037, allocations: 1.814 MB / 330.9 MB, free: 1.836 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.1059, allocations: 1.061 MB / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1061, allocations: 7.938 kB / 331.9 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.1063, allocations: 31.78 kB / 332 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.1064, allocations: 39.7 kB / 332 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.1069, allocations: 115.8 kB / 332.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003889/0.1073, allocations: 339.1 kB / 332.4 MB, free: 248 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.1075, allocations: 99.08 kB / 332.5 MB, free: 156 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.1086, allocations: 0.9123 MB / 333.5 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.1088, allocations: 163.2 kB / 333.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.556e-05/0.1089, allocations: 12 kB / 333.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.599e-05/0.1089, allocations: 8 kB / 333.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001602/0.1091, allocations: 155.3 kB / 333.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000278/0.1094, allocations: 279.8 kB / 334.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007905/0.1102, allocations: 0.9188 MB / 335 MB, free: 13.7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1102, allocations: 0 / 335 MB, free: 13.7 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1102, allocations: 0 / 335 MB, free: 13.7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.567e-06/0.1102, allocations: 3.938 kB / 335 MB, free: 13.7 MB / 286.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.001135/0.1113, allocations: 0.9709 MB / 336 MB, free: 12.65 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.1114, allocations: 8.031 kB / 336 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.253e-05/0.1115, allocations: 54.73 kB / 336 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.1116, allocations: 80 kB / 336.1 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.1122, allocations: 439.9 kB / 336.5 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.1122, allocations: 20.38 kB / 336.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.326e-05/0.1123, allocations: 20.38 kB / 336.6 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006155/0.1129, allocations: 309.3 kB / 336.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1129, allocations: 0 / 336.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.194e-05/0.113, allocations: 12 kB / 336.9 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.113, allocations: 4 kB / 336.9 MB, free: 11.67 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004426/0.1135, allocations: 203.9 kB / 337.1 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.115, allocations: 0.8824 MB / 338 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.1155, allocations: 218.6 kB / 338.2 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.1158, allocations: 160.7 kB / 338.3 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.1159, allocations: 4 kB / 338.3 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007316/0.1166, allocations: 382 kB / 338.7 MB, free: 9.742 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 3.526e-06/0.1166, allocations: 0 / 338.7 MB, free: 9.742 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00165/0.1183, allocations: 0.7412 MB / 339.4 MB, free: 8.969 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001677/0.1185, allocations: 174.2 kB / 339.6 MB, free: 8.762 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.1201, allocations: 0.9961 MB / 340.6 MB, free: 7.754 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.333e-05/0.1202, allocations: 37.69 kB / 340.7 MB, free: 7.711 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.1203, allocations: 161.7 kB / 340.8 MB, free: 7.551 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.77e-05/0.1204, allocations: 59.28 kB / 340.9 MB, free: 7.492 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.857e-05/0.1205, allocations: 41.7 kB / 340.9 MB, free: 7.445 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1207, allocations: 342.8 kB / 341.2 MB, free: 7.102 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.121, allocations: 127.9 kB / 341.4 MB, free: 6.977 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.1213, allocations: 156.2 kB / 341.5 MB, free: 6.809 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006503/0.122, allocations: 473.8 kB / 342 MB, free: 6.281 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.122, allocations: 0 / 342 MB, free: 6.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001038/0.123, allocations: 0.5819 MB / 342.6 MB, free: 5.668 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.1231, allocations: 134.8 kB / 342.7 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1231, allocations: 0 / 342.7 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1232, allocations: 4 kB / 342.7 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.225e-05/0.1233, allocations: 15.98 kB / 342.7 MB, free: 5.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1233, allocations: 4 kB / 342.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.1236, allocations: 39.88 kB / 342.8 MB, free: 5.449 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.1237, allocations: 116 kB / 342.9 MB, free: 5.336 MB / 286.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.000721/0.1245, allocations: 0.5336 MB / 343.4 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.1246, allocations: 79.06 kB / 343.5 MB, free: 4.688 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/0.1248, allocations: 134.4 kB / 343.6 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1248, allocations: 0 / 343.6 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1248, allocations: 0 / 343.6 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.1249, allocations: 3.984 kB / 343.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007526/0.1256, allocations: 0.6297 MB / 344.2 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1256, allocations: 0 / 344.2 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.945e-05/0.1257, allocations: 19.92 kB / 344.3 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1257, allocations: 0 / 344.3 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.956e-05/0.1257, allocations: 27.98 kB / 344.3 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1257, allocations: 0 / 344.3 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1258, allocations: 0 / 344.3 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.1269, allocations: 0.7061 MB / 345 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006849/0.1276, allocations: 499.7 kB / 345.5 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.1277, allocations: 20 kB / 345.5 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.1279, allocations: 35.91 kB / 345.5 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.1281, allocations: 47.95 kB / 345.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.1282, allocations: 115.9 kB / 345.7 MB, free: 2.34 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000969/0.1292, allocations: 0.729 MB / 346.4 MB, free: 1.613 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1292, allocations: 3.938 kB / 346.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003978/0.1296, allocations: 95.84 kB / 346.5 MB, free: 1.516 MB / 286.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.001533/0.1312, allocations: 1.281 MB / 347.8 MB, free: 184 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.1322, allocations: 0.6537 MB / 348.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1322, allocations: 0 / 348.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005554/0.1328, allocations: 0.5327 MB / 349 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000906/0.1337, allocations: 175.3 kB / 349.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007764/0.1415, allocations: 4.665 MB / 353.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007006/0.1423, allocations: 0.9678 MB / 354.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004037/0.1427, allocations: 169.1 kB / 355 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/0.1429, allocations: 119.3 kB / 355.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of SimCode: time 1.472e-06/0.1429, allocations: 0 / 355.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.1675, allocations: 9.15 MB / 364.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/0.1677, allocations: 209.4 kB / 364.4 MB, free: 15.17 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.017/2.185, allocations: 4.062 kB / 364.4 MB, free: 15.17 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches