Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER",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.001495/0.001495, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.947/1.947, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001177/0.001177, allocations: 96.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.0003908, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.34, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1323/0.4723, allocations: 81.36 MB / 456 MB, free: 15.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.4726, allocations: 67.97 kB / 456.1 MB, free: 15.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05913/0.5318, allocations: 16.42 MB / 472.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5318, allocations: 0 / 472.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.5318, allocations: 4 kB / 472.5 MB, free: 14.81 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009515/0.5328, allocations: 0.676 MB / 473.2 MB, free: 14.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.5329, allocations: 12.03 kB / 473.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.072e-05/0.533, allocations: 38.56 kB / 473.2 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.588e-05/0.5331, allocations: 39.62 kB / 473.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.5335, allocations: 261.3 kB / 473.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.5335, allocations: 4 kB / 473.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.5336, allocations: 8 kB / 473.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.534, allocations: 133.5 kB / 473.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.534, allocations: 0 / 473.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.431e-05/0.5341, allocations: 4 kB / 473.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.5341, allocations: 4 kB / 473.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.5344, allocations: 59.95 kB / 473.7 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009908/0.5354, allocations: 464.4 kB / 474.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.5357, allocations: 94.55 kB / 474.3 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.5358, allocations: 0 / 474.3 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004557/0.5362, allocations: 217.2 kB / 474.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.755e-06/0.5362, allocations: 0 / 474.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001493/0.5377, allocations: 0.6154 MB / 475.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.5379, allocations: 166.2 kB / 475.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.539, allocations: 464.5 kB / 475.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/0.5391, allocations: 33.7 kB / 475.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.5392, allocations: 159.6 kB / 475.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.306e-05/0.5393, allocations: 35.55 kB / 475.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.468e-05/0.5393, allocations: 11.94 kB / 475.9 MB, free: 11.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5395, allocations: 314.8 kB / 476.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.5397, allocations: 59.95 kB / 476.3 MB, free: 10.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.54, allocations: 73.67 kB / 476.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.5403, allocations: 162.8 kB / 476.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.5403, allocations: 0 / 476.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009522/0.5413, allocations: 372.2 kB / 476.9 MB, free: 9.996 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.5414, allocations: 130.8 kB / 477 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.5415, allocations: 0 / 477 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.5415, allocations: 4 kB / 477 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.794e-05/0.5415, allocations: 112 / 477 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.5415, allocations: 8 kB / 477 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.5418, allocations: 12 kB / 477 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.5419, allocations: 63.88 kB / 477.1 MB, free: 9.758 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * 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.0006411/0.5426, allocations: 358.8 kB / 477.5 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.5427, allocations: 39.53 kB / 477.5 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000177/0.5429, allocations: 63.16 kB / 477.6 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.5429, allocations: 4 kB / 477.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5429, allocations: 0 / 477.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5429, allocations: 0 / 477.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.5446, allocations: 0.8058 MB / 478.4 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5446, allocations: 4 kB / 478.4 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.54e-05/0.5447, allocations: 4 kB / 478.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.5447, allocations: 4 kB / 478.4 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.5447, allocations: 8 kB / 478.4 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.5447, allocations: 4 kB / 478.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.5448, allocations: 3.984 kB / 478.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.5459, allocations: 0.5255 MB / 478.9 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006319/0.5466, allocations: 240.5 kB / 479.2 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.5467, allocations: 12 kB / 479.2 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002628/0.547, allocations: 15.98 kB / 479.2 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.5472, allocations: 31.95 kB / 479.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.5473, allocations: 55.94 kB / 479.3 MB, free: 7.426 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008593/0.5481, allocations: 390.8 kB / 479.7 MB, free: 7.051 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5482, allocations: 0 / 479.7 MB, free: 7.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000471/0.5487, allocations: 47.95 kB / 479.7 MB, free: 7.004 MB / 362.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * 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.001651/0.5503, allocations: 1.068 MB / 480.8 MB, free: 5.887 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000844/0.5512, allocations: 441.5 kB / 481.2 MB, free: 5.406 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5512, allocations: 0 / 481.2 MB, free: 5.406 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004981/0.5517, allocations: 377.6 kB / 481.6 MB, free: 4.988 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008149/0.5526, allocations: 101.5 kB / 481.7 MB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/0.5565, allocations: 1.641 MB / 483.3 MB, free: 3.188 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006255/0.5572, allocations: 0.8102 MB / 484.1 MB, free: 2.352 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.061e-05/0.5573, allocations: 23.44 kB / 484.1 MB, free: 2.328 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5573, allocations: 0 / 484.1 MB, free: 2.328 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.587/3.145, allocations: 3.132 MB / 487.3 MB, free: 15.13 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat