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.001605/0.001605, allocations: 182.1 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.27/2.27, allocations: 205.2 MB / 219.4 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.001239/0.001239, allocations: 101.9 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.568e-05/3.585e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4324/0.5386, allocations: 81.27 MB / 450.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003666/0.539, allocations: 69.27 kB / 450.5 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08648/0.6255, allocations: 16.52 MB / 467 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6256, allocations: 0 / 467 MB, free: 13.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.6257, allocations: 4 kB / 467 MB, free: 13.32 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.001158/0.6268, allocations: 0.6213 MB / 467.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.6269, allocations: 12.03 kB / 467.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.018e-05/0.627, allocations: 34.56 kB / 467.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.275e-05/0.6271, allocations: 35.62 kB / 467.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.6276, allocations: 253.5 kB / 468 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.6276, allocations: 16 kB / 468 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.6277, allocations: 11.94 kB / 468 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.6281, allocations: 121.6 kB / 468.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.6282, allocations: 0 / 468.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/0.6282, allocations: 11.92 kB / 468.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.6282, allocations: 4 kB / 468.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.6285, allocations: 55.98 kB / 468.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.6295, allocations: 472.4 kB / 468.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.6298, allocations: 94.5 kB / 468.8 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.63, allocations: 83.3 kB / 468.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.63, allocations: 4.109 kB / 468.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004184/0.6305, allocations: 206.6 kB / 469 MB, free: 11.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.625e-06/0.6305, allocations: 0 / 469 MB, free: 11.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009906/0.6315, allocations: 403.9 kB / 469.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.6317, allocations: 166.2 kB / 469.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.6327, allocations: 466.5 kB / 470.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.6328, allocations: 33.69 kB / 470.1 MB, free: 9.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.6329, allocations: 159.6 kB / 470.2 MB, free: 9.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.148e-05/0.633, allocations: 31.61 kB / 470.3 MB, free: 9.789 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/0.633, allocations: 4 kB / 470.3 MB, free: 9.785 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.6332, allocations: 322.8 kB / 470.6 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.6334, allocations: 55.98 kB / 470.7 MB, free: 9.406 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.6336, allocations: 53.12 kB / 470.7 MB, free: 9.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.6339, allocations: 175.3 kB / 470.9 MB, free: 9.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6339, allocations: 4 kB / 470.9 MB, free: 9.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008282/0.6347, allocations: 356.5 kB / 471.2 MB, free: 8.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.6349, allocations: 122.8 kB / 471.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.6349, allocations: 0 / 471.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.6349, allocations: 0 / 471.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.784e-05/0.635, allocations: 8 kB / 471.4 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.635, allocations: 4 kB / 471.4 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.6353, allocations: 15.94 kB / 471.4 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.6354, allocations: 55.94 kB / 471.4 MB, free: 8.551 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,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,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 () * 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.0002632/0.6356, allocations: 249.9 kB / 471.7 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.972e-05/0.6357, allocations: 39.53 kB / 471.7 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002148/0.636, allocations: 63.44 kB / 471.8 MB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.636, allocations: 0 / 471.8 MB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.636, allocations: 7.984 kB / 471.8 MB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.636, allocations: 4 kB / 471.8 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.6375, allocations: 0.7979 MB / 472.6 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.6375, allocations: 128 / 472.6 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.096e-05/0.6376, allocations: 4 kB / 472.6 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.6376, allocations: 0 / 472.6 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.437e-05/0.6376, allocations: 19.88 kB / 472.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.6376, allocations: 0 / 472.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6377, allocations: 0 / 472.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.6387, allocations: 0.5251 MB / 473.1 MB, free: 6.691 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005618/0.6393, allocations: 240.5 kB / 473.4 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/0.6394, allocations: 11.98 kB / 473.4 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.6396, allocations: 12 kB / 473.4 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.6398, allocations: 23.97 kB / 473.4 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.6399, allocations: 63.92 kB / 473.5 MB, free: 6.328 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007641/0.6407, allocations: 388.9 kB / 473.9 MB, free: 5.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6407, allocations: 4 kB / 473.9 MB, free: 5.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.6411, allocations: 40 kB / 473.9 MB, free: 5.91 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,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) * 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.00148/0.6426, allocations: 1.072 MB / 475 MB, free: 4.781 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007429/0.6434, allocations: 429.6 kB / 475.4 MB, free: 4.312 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.6434, allocations: 4 kB / 475.4 MB, free: 4.309 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004813/0.6439, allocations: 377.5 kB / 475.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008178/0.6447, allocations: 101 kB / 475.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.6469, allocations: 0.6474 MB / 476.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006408/0.6476, allocations: 0.8063 MB / 477.3 MB, free: 2.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/0.6477, allocations: 27.42 kB / 477.3 MB, free: 2.234 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6477, allocations: 0 / 477.3 MB, free: 2.234 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.647/3.295, allocations: 3.16 MB / 480.5 MB, free: 15.01 MB / 362.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