Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.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.NRXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER",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.001576/0.001576, allocations: 187.2 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 2.018/2.018, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001126/0.001126, allocations: 93.53 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004193/0.0004193, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3419, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.4729, allocations: 81.37 MB / 456 MB, free: 15.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.4732, allocations: 71.95 kB / 456.1 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05897/0.5322, allocations: 16.42 MB / 472.5 MB, free: 14.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5323, allocations: 0 / 472.5 MB, free: 14.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.5323, allocations: 8 kB / 472.5 MB, free: 14.8 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.0009937/0.5333, allocations: 0.6721 MB / 473.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.5334, allocations: 8.031 kB / 473.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.854e-05/0.5334, allocations: 42.56 kB / 473.2 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.209e-05/0.5335, allocations: 31.62 kB / 473.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.534, allocations: 261.3 kB / 473.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.534, allocations: 8 kB / 473.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.486e-05/0.5341, allocations: 8 kB / 473.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.5345, allocations: 133.5 kB / 473.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.5345, allocations: 0 / 473.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.638e-05/0.5346, allocations: 8 kB / 473.7 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.5346, allocations: 4 kB / 473.7 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.5349, allocations: 55.97 kB / 473.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009822/0.5359, allocations: 468.4 kB / 474.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.5362, allocations: 94.55 kB / 474.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.5362, allocations: 0 / 474.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/0.5367, allocations: 207.4 kB / 474.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.274e-06/0.5367, allocations: 0 / 474.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001542/0.5383, allocations: 0.6154 MB / 475.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.5385, allocations: 166.2 kB / 475.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/0.5395, allocations: 468.4 kB / 475.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.802e-05/0.5396, allocations: 33.7 kB / 475.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.5397, allocations: 159.5 kB / 475.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.152e-05/0.5398, allocations: 35.55 kB / 475.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/0.5398, allocations: 8 kB / 475.9 MB, free: 11.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.54, allocations: 310.8 kB / 476.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.5403, allocations: 55.97 kB / 476.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.5405, allocations: 81.67 kB / 476.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.5408, allocations: 162.8 kB / 476.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5408, allocations: 0 / 476.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009601/0.5418, allocations: 368.2 kB / 476.9 MB, free: 10 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.542, allocations: 127.9 kB / 477 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.542, allocations: 0 / 477 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.542, allocations: 3.984 kB / 477 MB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.962e-05/0.5421, allocations: 4 kB / 477 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.5421, allocations: 4.047 kB / 477 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.5423, allocations: 15.97 kB / 477 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.5425, allocations: 63.88 kB / 477.1 MB, free: 9.762 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.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0006007/0.5431, allocations: 362.9 kB / 477.5 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.416e-05/0.5432, allocations: 39.53 kB / 477.5 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001844/0.5434, allocations: 67.14 kB / 477.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.5434, allocations: 0 / 477.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.5434, allocations: 0 / 477.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.5434, allocations: 4 kB / 477.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.5451, allocations: 0.8138 MB / 478.4 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.5451, allocations: 0 / 478.4 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.217e-05/0.5451, allocations: 0 / 478.4 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.5451, allocations: 0 / 478.4 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.444e-05/0.5452, allocations: 15.98 kB / 478.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.5452, allocations: 0 / 478.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5452, allocations: 0 / 478.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.5464, allocations: 0.529 MB / 478.9 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005649/0.547, allocations: 244.5 kB / 479.2 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.03e-05/0.5471, allocations: 12 kB / 479.2 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.5473, allocations: 11.98 kB / 479.2 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.5475, allocations: 27.97 kB / 479.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.5477, allocations: 55.94 kB / 479.3 MB, free: 7.426 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008311/0.5485, allocations: 386.9 kB / 479.6 MB, free: 7.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5485, allocations: 0 / 479.6 MB, free: 7.055 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000443/0.549, allocations: 43.95 kB / 479.7 MB, free: 7.012 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.001588/0.5506, allocations: 1.082 MB / 480.8 MB, free: 5.879 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008814/0.5515, allocations: 441.5 kB / 481.2 MB, free: 5.398 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5515, allocations: 0 / 481.2 MB, free: 5.398 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005167/0.552, allocations: 377.6 kB / 481.6 MB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.5529, allocations: 104 kB / 481.7 MB, free: 4.883 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/0.5567, allocations: 1.632 MB / 483.3 MB, free: 3.188 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006545/0.5574, allocations: 0.8141 MB / 484.1 MB, free: 2.348 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.685e-05/0.5575, allocations: 35.36 kB / 484.2 MB, free: 2.312 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/0.5575, allocations: 3.938 kB / 484.2 MB, free: 2.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.571/3.128, allocations: 3.118 MB / 487.3 MB, free: 15.13 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat