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.0009613/0.0009614, allocations: 86.91 kB / 16.31 MB, free: 5.66 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.001091/0.001092, allocations: 176.7 kB / 17.21 MB, free: 5.578 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.462/1.462, allocations: 223.2 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002992, allocations: 6.031 kB / 300.9 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.111, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001647/0.1127, allocations: 1.187 MB / 352.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.1142, allocations: 0.8123 MB / 353.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.089e-05/0.1143, allocations: 0 / 353.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.682e-05/0.1144, allocations: 3.938 kB / 353.3 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.991e-05/0.1144, allocations: 19.84 kB / 353.4 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.1147, allocations: 39.97 kB / 353.4 MB, free: 9.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.1148, allocations: 99.75 kB / 353.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.926e-05/0.1149, allocations: 12.5 kB / 353.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005437/0.1155, allocations: 495.1 kB / 354 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.1156, allocations: 79.75 kB / 354.1 MB, free: 8.859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.1156, allocations: 4 kB / 354.1 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.423e-05/0.1157, allocations: 4 kB / 354.1 MB, free: 8.852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.373e-05/0.1157, allocations: 55.83 kB / 354.1 MB, free: 8.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.721e-05/0.1158, allocations: 73.52 kB / 354.2 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.1161, allocations: 311.2 kB / 354.5 MB, free: 8.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1161, allocations: 4 kB / 354.5 MB, free: 8.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1161, allocations: 0 / 354.5 MB, free: 8.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1161, allocations: 0 / 354.5 MB, free: 8.41 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.0005874/0.1167, allocations: 0.6526 MB / 355.2 MB, free: 7.684 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1168, allocations: 12.02 kB / 355.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.59e-05/0.1168, allocations: 42.56 kB / 355.2 MB, free: 7.621 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.429e-05/0.1169, allocations: 31.62 kB / 355.3 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.1171, allocations: 257.4 kB / 355.5 MB, free: 7.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.1172, allocations: 12 kB / 355.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.1172, allocations: 8 kB / 355.5 MB, free: 7.277 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.1175, allocations: 125.6 kB / 355.6 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1175, allocations: 0 / 355.6 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.1175, allocations: 7.953 kB / 355.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1175, allocations: 7.938 kB / 355.7 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.1177, allocations: 55.97 kB / 355.7 MB, free: 7.078 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005792/0.1183, allocations: 476.4 kB / 356.2 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.1184, allocations: 98.5 kB / 356.3 MB, free: 6.457 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.1186, allocations: 80.89 kB / 356.4 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.316e-06/0.1186, allocations: 3.984 kB / 356.4 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003073/0.1189, allocations: 210.6 kB / 356.6 MB, free: 6.141 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.1189, allocations: 4 kB / 356.6 MB, free: 6.137 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007187/0.1197, allocations: 479.9 kB / 357 MB, free: 5.637 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.1198, allocations: 166.2 kB / 357.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005624/0.1203, allocations: 0.509 MB / 357.7 MB, free: 4.922 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.1204, allocations: 33.81 kB / 357.7 MB, free: 4.883 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.1204, allocations: 101 kB / 357.8 MB, free: 4.781 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.1205, allocations: 27.66 kB / 357.9 MB, free: 4.754 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.1205, allocations: 4 kB / 357.9 MB, free: 4.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1206, allocations: 326.8 kB / 358.2 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.1207, allocations: 59.97 kB / 358.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.1209, allocations: 75.78 kB / 358.3 MB, free: 4.285 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.121, allocations: 162.9 kB / 358.5 MB, free: 4.102 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.121, allocations: 0 / 358.5 MB, free: 4.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004978/0.1215, allocations: 398 kB / 358.9 MB, free: 3.684 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.901e-05/0.1216, allocations: 122.8 kB / 359 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.1216, allocations: 0 / 359 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.1216, allocations: 4.031 kB / 359 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.145e-05/0.1217, allocations: 4 kB / 359 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1217, allocations: 0 / 359 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.1218, allocations: 11.98 kB / 359 MB, free: 3.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.811e-05/0.1219, allocations: 59.94 kB / 359.1 MB, free: 3.461 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.0003146/0.1222, allocations: 358.8 kB / 359.4 MB, free: 3.078 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/0.1223, allocations: 43.48 kB / 359.5 MB, free: 3.035 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.897e-05/0.1224, allocations: 71.12 kB / 359.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1224, allocations: 4 kB / 359.5 MB, free: 2.953 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1224, allocations: 4 kB / 359.5 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1224, allocations: 0 / 359.5 MB, free: 2.949 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008851/0.1233, allocations: 0.8173 MB / 360.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1233, allocations: 0 / 360.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.438e-06/0.1233, allocations: 0 / 360.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.1233, allocations: 0 / 360.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.1234, allocations: 15.98 kB / 360.4 MB, free: 2.035 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1234, allocations: 0 / 360.4 MB, free: 2.035 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1234, allocations: 192 / 360.4 MB, free: 2.035 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005902/0.124, allocations: 0.5408 MB / 360.9 MB, free: 1.453 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002738/0.1243, allocations: 256.4 kB / 361.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.24e-05/0.1243, allocations: 12 kB / 361.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1245, allocations: 12 kB / 361.2 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.1246, allocations: 27.97 kB / 361.2 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-05/0.1246, allocations: 55.98 kB / 361.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000423/0.1251, allocations: 390.9 kB / 361.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1251, allocations: 3.938 kB / 361.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.1254, allocations: 44 kB / 361.7 MB, free: 0.6484 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.0008813/0.1262, allocations: 1.091 MB / 362.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004761/0.1267, allocations: 441.5 kB / 363.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1267, allocations: 4.062 kB / 363.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.127, allocations: 373.6 kB / 363.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000531/0.1276, allocations: 102.7 kB / 363.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.1298, allocations: 1.553 MB / 365.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.1302, allocations: 0.8025 MB / 366 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.227e-05/0.1302, allocations: 16.62 kB / 366.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.297e-05/0.1303, allocations: 23.44 kB / 366.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1303, allocations: 3.938 kB / 366.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.1454, allocations: 5.298 MB / 371.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.1456, allocations: 187.6 kB / 371.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.871/2.017, allocations: 8.062 kB / 371.6 MB, free: 6.535 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