Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 97.06 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 182.3 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003612, allocations: 6.156 kB / 300.8 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.117, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001793/0.1189, allocations: 1.194 MB / 352.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.1207, allocations: 0.8124 MB / 353.2 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.384e-05/0.1208, allocations: 0 / 353.2 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.271e-05/0.1209, allocations: 7.922 kB / 353.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.121, allocations: 11.98 kB / 353.2 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.1213, allocations: 43.83 kB / 353.3 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.1214, allocations: 63.92 kB / 353.4 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.1215, allocations: 20.44 kB / 353.4 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004939/0.122, allocations: 419.3 kB / 353.8 MB, free: 9.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.1222, allocations: 75.81 kB / 353.9 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.17e-05/0.1222, allocations: 4 kB / 353.9 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.577e-05/0.1223, allocations: 4 kB / 353.9 MB, free: 8.988 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.78e-05/0.1224, allocations: 63.77 kB / 353.9 MB, free: 8.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.553e-05/0.1224, allocations: 77.52 kB / 354 MB, free: 8.844 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.1227, allocations: 299.2 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1227, allocations: 0 / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1227, allocations: 0 / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1228, allocations: 4 kB / 354.3 MB, free: 8.547 MB / 286.1 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.0007813/0.1235, allocations: 0.6551 MB / 355 MB, free: 7.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.1236, allocations: 12.03 kB / 355 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.471e-05/0.1237, allocations: 42.55 kB / 355 MB, free: 7.758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.268e-05/0.1237, allocations: 31.62 kB / 355 MB, free: 7.727 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.1241, allocations: 253.4 kB / 355.3 MB, free: 7.438 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1241, allocations: 8 kB / 355.3 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.1241, allocations: 8 kB / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.1245, allocations: 141.6 kB / 355.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1245, allocations: 0 / 355.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.533e-05/0.1245, allocations: 7.953 kB / 355.4 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.1245, allocations: 4 kB / 355.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.1247, allocations: 59.91 kB / 355.5 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006923/0.1254, allocations: 460.5 kB / 356 MB, free: 6.707 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.1256, allocations: 102.5 kB / 356.1 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.1256, allocations: 0 / 356.1 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003746/0.126, allocations: 210.7 kB / 356.3 MB, free: 6.367 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.126, allocations: 0 / 356.3 MB, free: 6.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009168/0.1269, allocations: 0.626 MB / 356.9 MB, free: 5.676 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.127, allocations: 170.2 kB / 357.1 MB, free: 5.473 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006711/0.1277, allocations: 0.513 MB / 357.6 MB, free: 4.953 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/0.1278, allocations: 29.7 kB / 357.6 MB, free: 4.918 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.904e-05/0.1278, allocations: 101 kB / 357.7 MB, free: 4.816 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.1279, allocations: 27.7 kB / 357.7 MB, free: 4.789 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.1279, allocations: 4 kB / 357.7 MB, free: 4.785 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1281, allocations: 322.8 kB / 358 MB, free: 4.461 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.1282, allocations: 59.97 kB / 358.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.1283, allocations: 73.69 kB / 358.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.1285, allocations: 166.8 kB / 358.3 MB, free: 4.137 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1285, allocations: 0 / 358.3 MB, free: 4.137 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005366/0.1291, allocations: 392.5 kB / 358.7 MB, free: 3.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.1292, allocations: 122.7 kB / 358.8 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1292, allocations: 0 / 358.8 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.1292, allocations: 7.984 kB / 358.8 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.695e-05/0.1293, allocations: 4.031 kB / 358.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.1293, allocations: 128 / 358.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.1295, allocations: 20 kB / 358.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.072e-05/0.1296, allocations: 60 kB / 358.9 MB, free: 3.488 MB / 286.1 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.0004462/0.13, allocations: 370.6 kB / 359.3 MB, free: 3.094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.942e-05/0.1301, allocations: 39.48 kB / 359.3 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.1302, allocations: 67.16 kB / 359.4 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1302, allocations: 0 / 359.4 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1302, allocations: 4 kB / 359.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1302, allocations: 0 / 359.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.1313, allocations: 0.8134 MB / 360.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.1313, allocations: 0 / 360.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-06/0.1313, allocations: 4 kB / 360.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1313, allocations: 0 / 360.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.1313, allocations: 15.98 kB / 360.2 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1314, allocations: 4 kB / 360.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1314, allocations: 3.938 kB / 360.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006604/0.132, allocations: 0.5403 MB / 360.8 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.1324, allocations: 244.5 kB / 361 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.638e-05/0.1324, allocations: 12 kB / 361 MB, free: 1.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.1326, allocations: 11.98 kB / 361 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.1327, allocations: 27.91 kB / 361.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.056e-05/0.1328, allocations: 56 kB / 361.1 MB, free: 1.113 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004737/0.1332, allocations: 386.9 kB / 361.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1333, allocations: 4 kB / 361.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.1336, allocations: 43.98 kB / 361.5 MB, free: 0.6875 MB / 286.1 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.001044/0.1346, allocations: 1.104 MB / 362.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005436/0.1352, allocations: 433.5 kB / 363.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1352, allocations: 0 / 363.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003492/0.1355, allocations: 385.6 kB / 363.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.136, allocations: 97.91 kB / 363.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.1384, allocations: 1.599 MB / 365.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.1389, allocations: 0.8142 MB / 366 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.98e-05/0.139, allocations: 4.672 kB / 366 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.408e-05/0.139, allocations: 27.42 kB / 366 MB, free: 12.02 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.139, allocations: 0 / 366 MB, free: 12.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.1548, allocations: 5.271 MB / 371.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.155, allocations: 179 kB / 371.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.054, allocations: 7.312 kB / 371.4 MB, free: 6.539 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat