Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002114/0.002114, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 91.06 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.581e-05/2.591e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3428, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.133/0.4759, allocations: 82.58 MB / 445 MB, free: 3.629 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.4762, allocations: 74.66 kB / 445.1 MB, free: 3.559 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1509/0.6272, allocations: 34.39 MB / 479.5 MB, free: 1.277 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.6272, allocations: 0 / 479.5 MB, free: 1.277 MB / 363.1 MB Notification: Performance of Transformations before backend: time 4.106e-05/0.6273, allocations: 8 kB / 479.5 MB, free: 1.27 MB / 363.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.001381/0.6287, allocations: 0.8723 MB / 480.4 MB, free: 336 kB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.6287, allocations: 15.97 kB / 480.4 MB, free: 320 kB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.629, allocations: 79.06 kB / 480.4 MB, free: 240 kB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009097/0.6299, allocations: 399.6 kB / 480.8 MB, free: 15.8 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.699e-05/0.63, allocations: 19.94 kB / 480.9 MB, free: 15.79 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.6301, allocations: 12 kB / 480.9 MB, free: 15.77 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006615/0.6307, allocations: 199.7 kB / 481.1 MB, free: 15.58 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007299/0.6315, allocations: 269.5 kB / 481.3 MB, free: 15.31 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.6315, allocations: 4 kB / 481.3 MB, free: 15.3 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.519e-05/0.6316, allocations: 4 kB / 481.3 MB, free: 15.3 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.6316, allocations: 0 / 481.3 MB, free: 15.3 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.6338, allocations: 0.8401 MB / 482.2 MB, free: 14.42 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/0.6344, allocations: 202.5 kB / 482.4 MB, free: 14.21 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/0.6348, allocations: 144.8 kB / 482.5 MB, free: 14.07 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.6348, allocations: 10.62 kB / 482.5 MB, free: 14.06 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007016/0.6356, allocations: 377.9 kB / 482.9 MB, free: 13.65 MB / 379.1 MB Notification: Performance of pre-optimization done (n=24): time 3.927e-06/0.6356, allocations: 0 / 482.9 MB, free: 13.65 MB / 379.1 MB Notification: Performance of matching and sorting (n=24): time 0.00138/0.637, allocations: 452.7 kB / 483.3 MB, free: 13.2 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.6371, allocations: 174.2 kB / 483.5 MB, free: 13 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001951/0.6391, allocations: 0.8432 MB / 484.3 MB, free: 12.14 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.6393, allocations: 29.7 kB / 484.4 MB, free: 12.11 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.6395, allocations: 212.2 kB / 484.6 MB, free: 11.9 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.6396, allocations: 47.42 kB / 484.6 MB, free: 11.86 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-05/0.6397, allocations: 8 kB / 484.6 MB, free: 11.85 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.6398, allocations: 327 kB / 485 MB, free: 11.52 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.6402, allocations: 116 kB / 485.1 MB, free: 11.41 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003562/0.6405, allocations: 142.5 kB / 485.2 MB, free: 11.26 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.6408, allocations: 91.77 kB / 485.3 MB, free: 11.17 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.6409, allocations: 4 kB / 485.3 MB, free: 11.16 MB / 379.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001212/0.6421, allocations: 413.4 kB / 485.7 MB, free: 10.75 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.6423, allocations: 130.8 kB / 485.8 MB, free: 10.6 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.6423, allocations: 4.125 kB / 485.8 MB, free: 10.6 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.6423, allocations: 0 / 485.8 MB, free: 10.6 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.6425, allocations: 19.94 kB / 485.9 MB, free: 10.58 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.386e-05/0.6425, allocations: 0 / 485.9 MB, free: 10.58 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005307/0.643, allocations: 31.88 kB / 485.9 MB, free: 10.55 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002007/0.6433, allocations: 119.9 kB / 486 MB, free: 10.43 MB / 379.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (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,$PRE.Adder.XOR.G2.y,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,$PRE.Adder.AND.G2.y,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 () * 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.0003674/0.6436, allocations: 273.9 kB / 486.3 MB, free: 10.13 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001402/0.6451, allocations: 0.4904 MB / 486.8 MB, free: 9.633 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.6452, allocations: 77.2 kB / 486.8 MB, free: 9.559 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004497/0.6457, allocations: 130.2 kB / 487 MB, free: 9.43 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.6457, allocations: 0 / 487 MB, free: 9.43 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.6457, allocations: 4 kB / 487 MB, free: 9.426 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.6458, allocations: 0 / 487 MB, free: 9.426 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.6469, allocations: 0.5911 MB / 487.6 MB, free: 8.797 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.647, allocations: 0 / 487.6 MB, free: 8.797 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.845e-05/0.6471, allocations: 15.92 kB / 487.6 MB, free: 8.781 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.6471, allocations: 0 / 487.6 MB, free: 8.781 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.095e-05/0.6472, allocations: 27.98 kB / 487.6 MB, free: 8.754 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.6472, allocations: 0 / 487.6 MB, free: 8.754 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6472, allocations: 0 / 487.6 MB, free: 8.754 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.6491, allocations: 0.5285 MB / 488.1 MB, free: 8.207 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001845/0.651, allocations: 0.4918 MB / 488.6 MB, free: 7.695 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.6512, allocations: 20 kB / 488.6 MB, free: 7.676 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000433/0.6517, allocations: 31.91 kB / 488.7 MB, free: 7.645 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.652, allocations: 55.97 kB / 488.7 MB, free: 7.59 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002036/0.6522, allocations: 119.9 kB / 488.8 MB, free: 7.473 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.001623/0.6538, allocations: 0.686 MB / 489.5 MB, free: 6.789 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.041e-06/0.6538, allocations: 0 / 489.5 MB, free: 6.789 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0006988/0.6546, allocations: 91.98 kB / 489.6 MB, free: 6.699 MB / 379.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.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.XOR.G1.auxiliary_n,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,Adder.AND.G1.auxiliary_n,b.y,a.y) * 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.001983/0.6566, allocations: 1.1 MB / 490.7 MB, free: 5.566 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.6579, allocations: 0.6187 MB / 491.3 MB, free: 4.898 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6579, allocations: 0 / 491.3 MB, free: 4.898 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008305/0.6588, allocations: 0.5172 MB / 491.9 MB, free: 4.332 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.66, allocations: 161.4 kB / 492 MB, free: 4.184 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.6638, allocations: 1.273 MB / 493.3 MB, free: 2.859 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.6649, allocations: 0.9835 MB / 494.3 MB, free: 1.848 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00053/0.6655, allocations: 151.2 kB / 494.4 MB, free: 1.699 MB / 379.1 MB Notification: Performance of SimCode: time 1.242e-06/0.6655, allocations: 0 / 494.4 MB, free: 1.699 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.777/3.443, allocations: 6.484 MB / 0.4892 GB, free: 11.18 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat