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.0007562/0.0007563, allocations: 90.7 kB / 16.31 MB, free: 6.008 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.0008507/0.0008507, allocations: 184.3 kB / 17.21 MB, free: 5.902 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.434/1.434, allocations: 223.2 MB / 241.2 MB, free: 5.336 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002768/0.0002769, allocations: 11.48 kB / 300.9 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1127, allocations: 50.43 MB / 351.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002191/0.115, allocations: 1.739 MB / 353.1 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.117, allocations: 0.9633 MB / 354 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.852e-05/0.1171, allocations: 0 / 354 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.1173, allocations: 27.78 kB / 354.1 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1174, allocations: 39.66 kB / 354.1 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.1178, allocations: 91.81 kB / 354.2 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003625/0.1181, allocations: 315.1 kB / 354.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.1184, allocations: 73.66 kB / 354.6 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000894/0.1193, allocations: 0.7837 MB / 355.4 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/0.1195, allocations: 187.5 kB / 355.5 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.329e-05/0.1196, allocations: 8 kB / 355.6 MB, free: 7.285 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.097e-05/0.1196, allocations: 12 kB / 355.6 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.1198, allocations: 147.5 kB / 355.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.1199, allocations: 141.3 kB / 355.8 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000674/0.1206, allocations: 0.7871 MB / 356.6 MB, free: 6.195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.1206, allocations: 4 kB / 356.6 MB, free: 6.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1206, allocations: 0 / 356.6 MB, free: 6.191 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1207, allocations: 0 / 356.6 MB, free: 6.191 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.001048/0.1217, allocations: 0.9707 MB / 357.6 MB, free: 5.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1218, allocations: 12.03 kB / 357.6 MB, free: 5.133 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.906e-05/0.1218, allocations: 50.55 kB / 357.7 MB, free: 5.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.122, allocations: 82.97 kB / 357.8 MB, free: 4.992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004638/0.1224, allocations: 399.6 kB / 358.1 MB, free: 4.562 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.1225, allocations: 15.98 kB / 358.2 MB, free: 4.547 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.1225, allocations: 20 kB / 358.2 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006086/0.1231, allocations: 293.4 kB / 358.5 MB, free: 4.234 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.1232, allocations: 3.953 kB / 358.5 MB, free: 4.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.1232, allocations: 8 kB / 358.5 MB, free: 4.223 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1232, allocations: 4 kB / 358.5 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004376/0.1237, allocations: 215.9 kB / 358.7 MB, free: 4.008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.125, allocations: 0.8904 MB / 359.6 MB, free: 3.066 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004231/0.1254, allocations: 214.6 kB / 359.8 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002692/0.1257, allocations: 160.7 kB / 359.9 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.1257, allocations: 4 kB / 360 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005659/0.1263, allocations: 397 kB / 360.3 MB, free: 2.262 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1263, allocations: 0 / 360.3 MB, free: 2.262 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001327/0.1277, allocations: 0.7326 MB / 361.1 MB, free: 1.5 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.1278, allocations: 174.2 kB / 361.2 MB, free: 1.293 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.1291, allocations: 1.004 MB / 362.2 MB, free: 284 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.1291, allocations: 37.7 kB / 362.3 MB, free: 240 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1292, allocations: 145.9 kB / 362.4 MB, free: 92 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.1294, allocations: 59.28 kB / 362.5 MB, free: 32 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.1294, allocations: 8 kB / 362.5 MB, free: 24 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.1296, allocations: 338.8 kB / 362.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/0.1299, allocations: 124 kB / 362.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.1302, allocations: 160.2 kB / 363.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004109/0.1306, allocations: 223 kB / 363.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1306, allocations: 3.953 kB / 363.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009087/0.1315, allocations: 0.5857 MB / 363.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.1316, allocations: 134.8 kB / 364 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1317, allocations: 0 / 364 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1317, allocations: 4 kB / 364 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.815e-05/0.1318, allocations: 15.98 kB / 364.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.1318, allocations: 3.938 kB / 364.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.1321, allocations: 35.89 kB / 364.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.1322, allocations: 111.9 kB / 364.2 MB, free: 14.2 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006155/0.1328, allocations: 0.5337 MB / 364.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-05/0.1329, allocations: 79.11 kB / 364.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.1332, allocations: 130.4 kB / 364.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1332, allocations: 0 / 364.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.1332, allocations: 4 kB / 364.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1332, allocations: 0 / 364.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007639/0.134, allocations: 0.6296 MB / 365.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.134, allocations: 4 kB / 365.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.268e-05/0.134, allocations: 12 kB / 365.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.134, allocations: 128 / 365.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-05/0.1341, allocations: 31.92 kB / 365.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1341, allocations: 3.984 kB / 365.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.1341, allocations: 0 / 365.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.1352, allocations: 0.6942 MB / 366.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006801/0.1359, allocations: 0.5073 MB / 366.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.909e-05/0.136, allocations: 23.98 kB / 366.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.1362, allocations: 19.98 kB / 366.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.1364, allocations: 63.91 kB / 366.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/0.1365, allocations: 112.1 kB / 367 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001004/0.1375, allocations: 0.7289 MB / 367.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1375, allocations: 3.938 kB / 367.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.1379, allocations: 91.84 kB / 367.9 MB, free: 10.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001436/0.1393, allocations: 1.28 MB / 369.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009577/0.1403, allocations: 0.6498 MB / 369.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1403, allocations: 0 / 369.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005903/0.1409, allocations: 0.5288 MB / 370.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007736/0.1417, allocations: 177.9 kB / 370.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005122/0.1468, allocations: 3.104 MB / 373.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007274/0.1476, allocations: 0.9678 MB / 374.6 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000404/0.148, allocations: 165.2 kB / 374.7 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.1483, allocations: 131.3 kB / 374.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of SimCode: time 1.123e-06/0.1483, allocations: 0 / 374.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.1698, allocations: 9.064 MB / 383.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002075/0.1701, allocations: 177.2 kB / 384.1 MB, free: 9.996 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.095, allocations: 0 / 384.1 MB, free: 9.996 MB / 318.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat