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.001545/0.001545, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 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: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.47e-05/4.485e-05, allocations: 7.984 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4186/0.5277, allocations: 83.24 MB / 452.4 MB, free: 9.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.5281, allocations: 65.84 kB / 452.5 MB, free: 9.879 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1235/0.6516, allocations: 34.63 MB / 487.1 MB, free: 9.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6517, allocations: 0 / 487.1 MB, free: 9.227 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.131e-05/0.6517, allocations: 12 kB / 487.1 MB, free: 9.215 MB / 362.7 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.001331/0.6531, allocations: 0.8662 MB / 488 MB, free: 8.277 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.6531, allocations: 11.97 kB / 488 MB, free: 8.266 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001239/0.6533, allocations: 58.55 kB / 488.1 MB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.6535, allocations: 79.06 kB / 488.1 MB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008208/0.6543, allocations: 395.6 kB / 488.5 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.6544, allocations: 24 kB / 488.5 MB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.072e-05/0.6545, allocations: 20 kB / 488.6 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/0.6553, allocations: 301.2 kB / 488.9 MB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.6554, allocations: 0 / 488.9 MB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.527e-05/0.6555, allocations: 8 kB / 488.9 MB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.6555, allocations: 4 kB / 488.9 MB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000634/0.6561, allocations: 199.9 kB / 489.1 MB, free: 7.141 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.6582, allocations: 0.8825 MB / 489.9 MB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006329/0.6589, allocations: 218.5 kB / 490.2 MB, free: 5.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.6593, allocations: 153.1 kB / 490.3 MB, free: 5.828 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.477e-05/0.6594, allocations: 4 kB / 490.3 MB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000741/0.6601, allocations: 385.9 kB / 490.7 MB, free: 5.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 3.337e-06/0.6601, allocations: 0 / 490.7 MB, free: 5.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001548/0.6617, allocations: 0.5853 MB / 491.3 MB, free: 4.793 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.6618, allocations: 174.4 kB / 491.4 MB, free: 4.586 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.6639, allocations: 0.886 MB / 492.3 MB, free: 3.691 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.824e-05/0.664, allocations: 33.7 kB / 492.4 MB, free: 3.652 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.6642, allocations: 208.2 kB / 492.6 MB, free: 3.445 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.6643, allocations: 47.42 kB / 492.6 MB, free: 3.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.299e-05/0.6644, allocations: 8 kB / 492.6 MB, free: 3.391 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.6645, allocations: 326.8 kB / 492.9 MB, free: 3.062 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.6649, allocations: 120.5 kB / 493.1 MB, free: 2.945 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004056/0.6653, allocations: 154.5 kB / 493.2 MB, free: 2.785 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.6658, allocations: 230.8 kB / 493.4 MB, free: 2.535 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.6658, allocations: 3.938 kB / 493.4 MB, free: 2.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001377/0.6672, allocations: 0.5354 MB / 494 MB, free: 1.965 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000143/0.6674, allocations: 138.8 kB / 494.1 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.6674, allocations: 0 / 494.1 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.6674, allocations: 0 / 494.1 MB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.6675, allocations: 15.98 kB / 494.1 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.6676, allocations: 0 / 494.1 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.6681, allocations: 39.83 kB / 494.2 MB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001956/0.6683, allocations: 119.8 kB / 494.3 MB, free: 1.633 MB / 362.7 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.0003509/0.6686, allocations: 269.9 kB / 494.5 MB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.6688, allocations: 87.05 kB / 494.6 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004241/0.6693, allocations: 126.2 kB / 494.8 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.6693, allocations: 0 / 494.8 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.6693, allocations: 4 kB / 494.8 MB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.6693, allocations: 4 kB / 494.8 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.6704, allocations: 0.6141 MB / 495.4 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.6705, allocations: 4 kB / 495.4 MB, free: 460 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.738e-05/0.6705, allocations: 16.05 kB / 495.4 MB, free: 444 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.685e-06/0.6706, allocations: 4 kB / 495.4 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.251e-05/0.6707, allocations: 31.97 kB / 495.4 MB, free: 408 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.6707, allocations: 0 / 495.4 MB, free: 408 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.6707, allocations: 0 / 495.4 MB, free: 408 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.6724, allocations: 0.6861 MB / 496.1 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.6736, allocations: 0.4919 MB / 496.6 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.6737, allocations: 20 kB / 496.6 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004347/0.6742, allocations: 35.81 kB / 496.7 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.6744, allocations: 51.94 kB / 496.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000203/0.6746, allocations: 119.9 kB / 496.8 MB, free: 14.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001596/0.6763, allocations: 0.7251 MB / 497.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.6763, allocations: 4 kB / 497.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005754/0.6769, allocations: 80 kB / 497.6 MB, free: 14.13 MB / 378.7 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.002243/0.6791, allocations: 1.25 MB / 498.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.6804, allocations: 0.6499 MB / 499.5 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.6804, allocations: 0 / 499.5 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007997/0.6813, allocations: 0.5172 MB / 0.4883 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.6825, allocations: 169.4 kB / 0.4885 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003574/0.686, allocations: 1.293 MB / 0.4898 GB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00098/0.6871, allocations: 0.9837 MB / 0.4907 GB, free: 9.043 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004925/0.6876, allocations: 151.2 kB / 0.4909 GB, free: 8.895 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6876, allocations: 0 / 0.4909 GB, free: 8.895 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.725/3.413, allocations: 6.51 MB / 0.4972 GB, free: 2.332 MB / 378.7 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