Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_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.0009882/0.0009881, allocations: 172.4 kB / 14.1 MB, free: 1.223 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.535/1.535, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0009434/0.0009437, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.552e-05/4.561e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.08551, allocations: 47.58 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3224/0.408, allocations: 81.26 MB / 451.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4082, allocations: 70.17 kB / 451.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03115/0.4394, allocations: 16.53 MB / 468 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.4394, allocations: 0 / 468 MB, free: 12.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.4395, allocations: 4 kB / 468 MB, free: 12.99 MB / 346.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.0005912/0.4401, allocations: 0.6213 MB / 468.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.4401, allocations: 8.031 kB / 468.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.66e-05/0.4402, allocations: 42.55 kB / 468.6 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.4402, allocations: 35.62 kB / 468.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.4406, allocations: 253.5 kB / 468.9 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.4406, allocations: 11.94 kB / 468.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.4406, allocations: 11.94 kB / 469 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.4409, allocations: 129.6 kB / 469.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4409, allocations: 0 / 469.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.4409, allocations: 4 kB / 469.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.441, allocations: 0 / 469.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.4411, allocations: 55.98 kB / 469.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000668/0.4418, allocations: 472.4 kB / 469.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001586/0.4419, allocations: 94.56 kB / 469.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.4421, allocations: 81.02 kB / 469.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.4421, allocations: 3.938 kB / 469.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002682/0.4424, allocations: 202.7 kB / 470 MB, free: 10.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.703e-06/0.4424, allocations: 3.938 kB / 470 MB, free: 10.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005808/0.443, allocations: 400 kB / 470.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.523e-05/0.4431, allocations: 174.2 kB / 470.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005431/0.4436, allocations: 458.5 kB / 471 MB, free: 9.691 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.4436, allocations: 33.7 kB / 471 MB, free: 9.652 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.176e-05/0.4437, allocations: 97.12 kB / 471.1 MB, free: 9.551 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.4438, allocations: 31.55 kB / 471.1 MB, free: 9.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.4438, allocations: 8 kB / 471.2 MB, free: 9.512 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.4439, allocations: 326.8 kB / 471.5 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.444, allocations: 55.98 kB / 471.5 MB, free: 9.129 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.747e-05/0.4441, allocations: 55.98 kB / 471.6 MB, free: 9.074 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001562/0.4443, allocations: 172.2 kB / 471.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4443, allocations: 0 / 471.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004732/0.4448, allocations: 361 kB / 472.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.302e-05/0.4449, allocations: 126.8 kB / 472.2 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.4449, allocations: 0 / 472.2 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.4449, allocations: 0 / 472.2 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-05/0.4449, allocations: 4 kB / 472.2 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.445, allocations: 3.938 kB / 472.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.4451, allocations: 19.95 kB / 472.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.721e-05/0.4452, allocations: 59.92 kB / 472.3 MB, free: 8.266 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,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 () * 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.0001751/0.4454, allocations: 246 kB / 472.5 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.902e-05/0.4454, allocations: 43.52 kB / 472.6 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.4455, allocations: 59.44 kB / 472.7 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.4455, allocations: 0 / 472.7 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4456, allocations: 8.062 kB / 472.7 MB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.4456, allocations: 0 / 472.7 MB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009194/0.4465, allocations: 0.8096 MB / 473.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.4465, allocations: 0 / 473.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.873e-06/0.4465, allocations: 0 / 473.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.4465, allocations: 7.875 kB / 473.5 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.4466, allocations: 15.98 kB / 473.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4466, allocations: 0 / 473.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4466, allocations: 0 / 473.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005865/0.4472, allocations: 0.5174 MB / 474 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003336/0.4475, allocations: 240.4 kB / 474.2 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.965e-05/0.4476, allocations: 12 kB / 474.3 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.4477, allocations: 11.98 kB / 474.3 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.4479, allocations: 27.97 kB / 474.3 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.378e-05/0.4479, allocations: 55.94 kB / 474.3 MB, free: 6.051 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004672/0.4484, allocations: 388.9 kB / 474.7 MB, free: 5.676 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.654e-06/0.4484, allocations: 8 kB / 474.7 MB, free: 5.668 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002802/0.4487, allocations: 47.94 kB / 474.8 MB, free: 5.621 MB / 346.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) * 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.001034/0.4498, allocations: 1.062 MB / 475.8 MB, free: 4.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004747/0.4502, allocations: 433.5 kB / 476.3 MB, free: 4.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.4503, allocations: 0 / 476.3 MB, free: 4.031 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002999/0.4506, allocations: 377.6 kB / 476.6 MB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005027/0.4511, allocations: 97.86 kB / 476.7 MB, free: 3.512 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.4522, allocations: 0.6028 MB / 477.3 MB, free: 2.871 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.4527, allocations: 0.8141 MB / 478.1 MB, free: 2.027 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.538e-05/0.4528, allocations: 9.312 kB / 478.2 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.545e-05/0.4528, allocations: 31.42 kB / 478.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4529, allocations: 0 / 478.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.4712, allocations: 5.329 MB / 483.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002492/0.4715, allocations: 164 kB / 483.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.553/2.025, allocations: 0 / 483.7 MB, free: 12.32 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat