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.001328/0.001328, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 205.2 kB / 18.74 MB, free: 4.312 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.381/1.381, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001864/0.001864, allocations: 71.88 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2507, allocations: 50.54 MB / 409 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002804/0.2536, allocations: 1.518 MB / 410.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.2555, allocations: 0.8795 MB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.249e-05/0.2556, allocations: 7.938 kB / 411.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.458e-05/0.2557, allocations: 3.938 kB / 411.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.167e-05/0.2558, allocations: 19.84 kB / 411.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002474/0.256, allocations: 47.89 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002164/0.2563, allocations: 147.7 kB / 411.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.2564, allocations: 19.75 kB / 411.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000632/0.257, allocations: 0.5732 MB / 412.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.2572, allocations: 67.77 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.792e-05/0.2572, allocations: 8 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.629e-05/0.2573, allocations: 8 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.74e-05/0.2574, allocations: 71.7 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.2575, allocations: 115.2 kB / 412.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000415/0.2579, allocations: 373.4 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2579, allocations: 0 / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.258, allocations: 0 / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.258, allocations: 0 / 412.9 MB, free: 13.55 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.000835/0.2588, allocations: 0.7266 MB / 413.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.2589, allocations: 12.03 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.324e-05/0.2589, allocations: 42.73 kB / 413.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.756e-05/0.259, allocations: 40.7 kB / 413.7 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.2593, allocations: 274.6 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.2594, allocations: 12.38 kB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.2594, allocations: 4.375 kB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.2597, allocations: 137.6 kB / 414.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.2597, allocations: 3.938 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.2598, allocations: 4 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2598, allocations: 7.984 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.2599, allocations: 55.97 kB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006642/0.2606, allocations: 468.4 kB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.2608, allocations: 94.53 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.261, allocations: 88.89 kB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.648e-06/0.261, allocations: 0 / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003627/0.2614, allocations: 202.7 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.2614, allocations: 4 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008401/0.2622, allocations: 484.2 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.2623, allocations: 170.2 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006474/0.263, allocations: 0.5091 MB / 416.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.263, allocations: 33.7 kB / 416.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.2631, allocations: 101.1 kB / 416.3 MB, free: 9.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.854e-05/0.2632, allocations: 19.86 kB / 416.3 MB, free: 9.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.2633, allocations: 85.55 kB / 416.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2635, allocations: 338.7 kB / 416.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.2636, allocations: 55.97 kB / 416.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.2637, allocations: 73.67 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/0.2641, allocations: 341.9 kB / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2641, allocations: 0 / 417.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005765/0.2647, allocations: 396.2 kB / 417.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.74e-05/0.2648, allocations: 126.8 kB / 417.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2648, allocations: 4.031 kB / 417.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2649, allocations: 0 / 417.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.788e-05/0.2649, allocations: 0 / 417.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2649, allocations: 4 kB / 417.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.265, allocations: 11.98 kB / 417.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.009e-05/0.2651, allocations: 56.06 kB / 417.8 MB, free: 8.211 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.0003648/0.2655, allocations: 362.8 kB / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.009e-05/0.2655, allocations: 43.75 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.2657, allocations: 75.08 kB / 418.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2657, allocations: 4 kB / 418.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2657, allocations: 112 / 418.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2657, allocations: 3.938 kB / 418.3 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.2667, allocations: 0.8173 MB / 419.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2667, allocations: 4 kB / 419.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-06/0.2667, allocations: 3.938 kB / 419.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2667, allocations: 0 / 419.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.2668, allocations: 12 kB / 419.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2668, allocations: 3.984 kB / 419.1 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2668, allocations: 7.938 kB / 419.1 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007774/0.2676, allocations: 0.5355 MB / 419.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.2679, allocations: 248.6 kB / 419.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.268, allocations: 12 kB / 419.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.2681, allocations: 8 kB / 419.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.2682, allocations: 31.91 kB / 419.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.396e-05/0.2683, allocations: 55.94 kB / 420 MB, free: 5.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004698/0.2688, allocations: 390.9 kB / 420.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2688, allocations: 0 / 420.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.2691, allocations: 48 kB / 420.4 MB, free: 5.398 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.001037/0.2701, allocations: 1.094 MB / 421.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005455/0.2707, allocations: 441.5 kB / 422 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2707, allocations: 0 / 422 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.2711, allocations: 377.5 kB / 422.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006324/0.2717, allocations: 121.2 kB / 422.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/0.2753, allocations: 2.745 MB / 425.2 MB, free: 396 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.2758, allocations: 0.7983 MB / 426 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.682e-05/0.2759, allocations: 12.66 kB / 426 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.111e-05/0.2759, allocations: 27.42 kB / 426 MB, free: 15.52 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2759, allocations: 0 / 426 MB, free: 15.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.3042, allocations: 6.045 MB / 432.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.573/8.878, allocations: 10.16 kB / 432.1 MB, free: 9.504 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 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)