Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.387/1.387, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 67.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2827, allocations: 50.55 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002665/0.2854, allocations: 1.518 MB / 410.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.2874, allocations: 0.8834 MB / 411.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.558e-05/0.2875, allocations: 4 kB / 411.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.674e-05/0.2876, allocations: 11.86 kB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.863e-05/0.2877, allocations: 15.86 kB / 411.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.2879, allocations: 47.89 kB / 411.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.2882, allocations: 143.7 kB / 411.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.2883, allocations: 27.72 kB / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005969/0.2889, allocations: 0.5654 MB / 412.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.289, allocations: 71.7 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.217e-05/0.2891, allocations: 8 kB / 412.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.585e-05/0.2891, allocations: 12 kB / 412.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.94e-05/0.2892, allocations: 63.77 kB / 412.4 MB, free: 14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.2894, allocations: 119.1 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004262/0.2898, allocations: 377.4 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2898, allocations: 0 / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2898, allocations: 0 / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.2898, allocations: 0 / 412.9 MB, free: 13.52 MB / 334.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.0008635/0.2907, allocations: 0.7228 MB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.2907, allocations: 12.03 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.194e-05/0.2908, allocations: 38.75 kB / 413.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.552e-05/0.2909, allocations: 40.7 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.2912, allocations: 282.6 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.2912, allocations: 8.375 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.2913, allocations: 8.375 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.2916, allocations: 137.7 kB / 414.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.2916, allocations: 3.938 kB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.2916, allocations: 4 kB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.2916, allocations: 0 / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.2918, allocations: 55.97 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006445/0.2924, allocations: 468.4 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.2927, allocations: 98.55 kB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.2928, allocations: 80.89 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.447e-06/0.2928, allocations: 0 / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003697/0.2932, allocations: 214.6 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.2932, allocations: 0 / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008241/0.294, allocations: 484.2 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.2942, allocations: 166.2 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006385/0.2948, allocations: 0.5169 MB / 416.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.2949, allocations: 29.7 kB / 416.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.667e-05/0.2949, allocations: 109 kB / 416.3 MB, free: 9.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.295, allocations: 27.83 kB / 416.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.2951, allocations: 81.56 kB / 416.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2952, allocations: 326.8 kB / 416.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.2954, allocations: 59.97 kB / 416.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.2955, allocations: 69.69 kB / 416.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003732/0.2959, allocations: 351.2 kB / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2959, allocations: 0 / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005631/0.2965, allocations: 391.6 kB / 417.6 MB, free: 8.395 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.422e-05/0.2966, allocations: 122.8 kB / 417.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2966, allocations: 3.984 kB / 417.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.2966, allocations: 4.031 kB / 417.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.212e-05/0.2967, allocations: 3.938 kB / 417.8 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.2967, allocations: 4 kB / 417.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/0.2968, allocations: 8 kB / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.306e-05/0.2969, allocations: 63.92 kB / 417.8 MB, free: 8.164 MB / 334.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,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003578/0.2972, allocations: 362.8 kB / 418.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.2973, allocations: 35.77 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.2974, allocations: 67.14 kB / 418.3 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.2974, allocations: 4 kB / 418.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2974, allocations: 112 / 418.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.2974, allocations: 3.938 kB / 418.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.2985, allocations: 0.8212 MB / 419.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2985, allocations: 0 / 419.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.947e-06/0.2985, allocations: 0 / 419.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.2985, allocations: 0 / 419.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/0.2985, allocations: 15.98 kB / 419.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2985, allocations: 0 / 419.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.2985, allocations: 4.125 kB / 419.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006697/0.2992, allocations: 0.541 MB / 419.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.2995, allocations: 248.6 kB / 419.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.2996, allocations: 12 kB / 419.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.2997, allocations: 15.98 kB / 419.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.2998, allocations: 23.92 kB / 420 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.605e-05/0.2999, allocations: 63.92 kB / 420 MB, free: 5.785 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004664/0.3004, allocations: 386.9 kB / 420.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.034e-06/0.3004, allocations: 7.938 kB / 420.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.3007, allocations: 43.94 kB / 420.5 MB, free: 5.359 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001039/0.3017, allocations: 1.093 MB / 421.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005464/0.3023, allocations: 437.5 kB / 422 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3023, allocations: 4.062 kB / 422 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.3027, allocations: 377.6 kB / 422.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006095/0.3033, allocations: 120.8 kB / 422.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.3068, allocations: 2.749 MB / 425.2 MB, free: 356 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005521/0.3074, allocations: 0.7983 MB / 426 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.94e-05/0.3075, allocations: 4.672 kB / 426 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.3075, allocations: 31.44 kB / 426.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3076, allocations: 0 / 426.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.3359, allocations: 6.03 MB / 432.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/8.115, allocations: 14.52 kB / 432.1 MB, free: 9.473 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)