Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",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.0006683/0.0006683, allocations: 92.97 kB / 16.31 MB, free: 5.602 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.0007973/0.0007974, allocations: 183.7 kB / 17.21 MB, free: 5.52 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.43/1.43, allocations: 223.2 MB / 241.2 MB, free: 320 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.0002739, allocations: 8 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1079, allocations: 50.41 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001726/0.1096, allocations: 1.193 MB / 352.5 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.1114, allocations: 0.8199 MB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.064e-05/0.1114, allocations: 0 / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.732e-05/0.1115, allocations: 7.922 kB / 353.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.985e-05/0.1116, allocations: 11.92 kB / 353.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.1118, allocations: 39.89 kB / 353.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.112, allocations: 99.75 kB / 353.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.897e-05/0.1121, allocations: 20.22 kB / 353.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.1126, allocations: 491.1 kB / 354 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.1127, allocations: 79.75 kB / 354.1 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.1128, allocations: 4 kB / 354.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.391e-05/0.1128, allocations: 4 kB / 354.1 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.063e-05/0.1129, allocations: 63.77 kB / 354.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.113, allocations: 73.52 kB / 354.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.1132, allocations: 291.3 kB / 354.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1132, allocations: 0 / 354.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1132, allocations: 0 / 354.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1133, allocations: 4 kB / 354.5 MB, free: 0.7188 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.0005993/0.1139, allocations: 0.6609 MB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1139, allocations: 8.031 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.241e-05/0.114, allocations: 38.55 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.853e-05/0.114, allocations: 39.53 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.1143, allocations: 257.4 kB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.1143, allocations: 4 kB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.1144, allocations: 12 kB / 355.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.1147, allocations: 133.6 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1147, allocations: 4 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.1147, allocations: 7.781 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.1147, allocations: 3.938 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.1149, allocations: 59.97 kB / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006275/0.1155, allocations: 452.7 kB / 356.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.1157, allocations: 106.4 kB / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.1159, allocations: 84.89 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.1159, allocations: 112 / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.1162, allocations: 206.6 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.845e-06/0.1162, allocations: 3.984 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007435/0.117, allocations: 483.8 kB / 357 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.745e-05/0.1171, allocations: 166.2 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005793/0.1177, allocations: 0.513 MB / 357.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.1177, allocations: 29.7 kB / 357.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.902e-05/0.1178, allocations: 105 kB / 357.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.1178, allocations: 27.66 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/0.1178, allocations: 7.938 kB / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1179, allocations: 322.8 kB / 358.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1181, allocations: 55.97 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.1182, allocations: 77.67 kB / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.1184, allocations: 166.7 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1184, allocations: 4 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000489/0.1189, allocations: 388 kB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.812e-05/0.119, allocations: 133.3 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.119, allocations: 0 / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.119, allocations: 0 / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.46e-05/0.119, allocations: 3.938 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.119, allocations: 8.062 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.1192, allocations: 19.92 kB / 359 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.022e-05/0.1193, allocations: 55.94 kB / 359.1 MB, free: 11.75 MB / 302.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.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,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: 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.000321/0.1196, allocations: 358.7 kB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.274e-05/0.1197, allocations: 39.58 kB / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.273e-05/0.1198, allocations: 63.16 kB / 359.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1198, allocations: 3.984 kB / 359.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1198, allocations: 0 / 359.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1198, allocations: 4 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008891/0.1207, allocations: 0.8212 MB / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1207, allocations: 0 / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-06/0.1207, allocations: 0 / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1207, allocations: 0 / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.1207, allocations: 16 kB / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1207, allocations: 192 / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1208, allocations: 0 / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006286/0.1214, allocations: 0.5447 MB / 360.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.1217, allocations: 248.4 kB / 361.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/0.1218, allocations: 11.98 kB / 361.2 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.1219, allocations: 12 kB / 361.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.122, allocations: 23.97 kB / 361.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.733e-05/0.1221, allocations: 59.98 kB / 361.3 MB, free: 9.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004402/0.1225, allocations: 386.9 kB / 361.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.1225, allocations: 0 / 361.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.1228, allocations: 51.78 kB / 361.7 MB, free: 8.953 MB / 302.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,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) * 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.0009113/0.1237, allocations: 1.089 MB / 362.8 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000472/0.1242, allocations: 437.5 kB / 363.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1242, allocations: 0 / 363.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003202/0.1246, allocations: 381.6 kB / 363.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.1251, allocations: 107.1 kB / 363.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.1273, allocations: 1.55 MB / 365.2 MB, free: 5.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.1277, allocations: 0.8025 MB / 366 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.97e-05/0.1278, allocations: 12.64 kB / 366.1 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.435e-05/0.1278, allocations: 27.42 kB / 366.1 MB, free: 4.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1279, allocations: 4 kB / 366.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1899/0.3178, allocations: 5.293 MB / 371.4 MB, free: 25.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/0.318, allocations: 174.5 kB / 371.6 MB, free: 24.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.196, allocations: 0 / 371.6 MB, free: 24.79 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat