Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008422/0.008422, allocations: 169.9 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005594/0.0005595, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3902, allocations: 47.59 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002198/0.3925, allocations: 1.225 MB / 328.2 MB, free: 448 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002694/0.3952, allocations: 0.8984 MB / 329.1 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.103e-05/0.3953, allocations: 1.062 kB / 329.1 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.901e-05/0.3954, allocations: 13.3 kB / 329.2 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.9e-05/0.3955, allocations: 11.45 kB / 329.2 MB, free: 15.74 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.3958, allocations: 43.69 kB / 329.2 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.396, allocations: 110.3 kB / 329.3 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.3961, allocations: 19.98 kB / 329.3 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007046/0.3968, allocations: 0.5527 MB / 329.9 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.397, allocations: 68.55 kB / 330 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.359e-05/0.397, allocations: 4.125 kB / 330 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.487e-05/0.397, allocations: 2.688 kB / 330 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.948e-05/0.3971, allocations: 62.05 kB / 330 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.3973, allocations: 137.1 kB / 330.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000362/0.3977, allocations: 357.8 kB / 330.5 MB, free: 14.97 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3977, allocations: 5.125 kB / 330.5 MB, free: 14.97 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.3977, allocations: 0 / 330.5 MB, free: 14.97 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3977, allocations: 0 / 330.5 MB, free: 14.97 MB / 270.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.0007653/0.3985, allocations: 0.6508 MB / 331.2 MB, free: 14.31 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.874e-05/0.3986, allocations: 8.531 kB / 331.2 MB, free: 14.31 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.3987, allocations: 35.34 kB / 331.2 MB, free: 14.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003821/0.3991, allocations: 281.1 kB / 331.5 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.3991, allocations: 9.75 kB / 331.5 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.3992, allocations: 12.16 kB / 331.5 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003853/0.3996, allocations: 129 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3996, allocations: 0.8438 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.3996, allocations: 3.438 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.3996, allocations: 1.062 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.3998, allocations: 57.62 kB / 331.7 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007302/0.4006, allocations: 475.9 kB / 332.2 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.4008, allocations: 96.45 kB / 332.3 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.4009, allocations: 81.92 kB / 332.3 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.401, allocations: 0 / 332.3 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000366/0.4013, allocations: 207.1 kB / 332.5 MB, free: 13.2 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 2.935e-06/0.4013, allocations: 7.984 kB / 332.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.000853/0.4022, allocations: 477.7 kB / 333 MB, free: 12.91 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.977e-05/0.4023, allocations: 164.1 kB / 333.2 MB, free: 12.71 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007327/0.4031, allocations: 0.5124 MB / 333.7 MB, free: 12.38 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.4031, allocations: 30.11 kB / 333.7 MB, free: 12.34 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.567e-05/0.4032, allocations: 104.8 kB / 333.8 MB, free: 12.24 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.816e-05/0.4032, allocations: 30.06 kB / 333.8 MB, free: 12.22 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.4033, allocations: 26.09 kB / 333.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4034, allocations: 330.1 kB / 334.2 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.4036, allocations: 55.53 kB / 334.2 MB, free: 11.84 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.4037, allocations: 80.17 kB / 334.3 MB, free: 11.77 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003575/0.4041, allocations: 343.2 kB / 334.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4041, allocations: 0 / 334.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005362/0.4046, allocations: 388.5 kB / 335 MB, free: 10.96 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.468e-05/0.4047, allocations: 126.8 kB / 335.2 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4048, allocations: 4.031 kB / 335.2 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.4048, allocations: 0 / 335.2 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.234e-05/0.4048, allocations: 3.938 kB / 335.2 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.4048, allocations: 4 kB / 335.2 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.405, allocations: 12.23 kB / 335.2 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.291e-05/0.4051, allocations: 63.86 kB / 335.2 MB, free: 10.73 MB / 270.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.0003799/0.4055, allocations: 362.8 kB / 335.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/0.4055, allocations: 43.53 kB / 335.6 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.4057, allocations: 71.08 kB / 335.7 MB, free: 10.22 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.4057, allocations: 0 / 335.7 MB, free: 10.22 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4057, allocations: 0 / 335.7 MB, free: 10.22 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.4057, allocations: 0 / 335.7 MB, free: 10.22 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.4067, allocations: 0.8216 MB / 336.5 MB, free: 9.32 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4067, allocations: 0 / 336.5 MB, free: 9.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-06/0.4067, allocations: 0 / 336.5 MB, free: 9.32 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.4068, allocations: 3.984 kB / 336.5 MB, free: 9.316 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.4068, allocations: 12 kB / 336.6 MB, free: 9.305 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4068, allocations: 4 kB / 336.6 MB, free: 9.301 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4068, allocations: 3.938 kB / 336.6 MB, free: 9.297 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006306/0.4074, allocations: 0.537 MB / 337.1 MB, free: 8.719 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003122/0.4078, allocations: 248.4 kB / 337.3 MB, free: 8.457 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.331e-05/0.4078, allocations: 8 kB / 337.3 MB, free: 8.449 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.408, allocations: 15.98 kB / 337.4 MB, free: 8.434 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.4081, allocations: 31.91 kB / 337.4 MB, free: 8.402 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.859e-05/0.4082, allocations: 59.94 kB / 337.5 MB, free: 8.344 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0004479/0.4086, allocations: 386.8 kB / 337.8 MB, free: 7.969 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4086, allocations: 4 kB / 337.8 MB, free: 7.965 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.4089, allocations: 44 kB / 337.9 MB, free: 7.922 MB / 270.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.0001404/0.4091, allocations: 119.1 kB / 338 MB, free: 7.797 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005317/0.4096, allocations: 437.5 kB / 338.4 MB, free: 7.32 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4096, allocations: 0 / 338.4 MB, free: 7.32 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003338/0.41, allocations: 373.5 kB / 338.8 MB, free: 6.906 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006429/0.4106, allocations: 105.5 kB / 338.9 MB, free: 6.801 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.4119, allocations: 0.7622 MB / 339.7 MB, free: 6.016 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.4124, allocations: 0.8063 MB / 340.5 MB, free: 5.184 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 5.709e-05/0.4125, allocations: 8.656 kB / 340.5 MB, free: 5.172 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.146e-05/0.4125, allocations: 11.44 kB / 340.5 MB, free: 5.164 MB / 270.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4125, allocations: 0 / 340.5 MB, free: 5.164 MB / 270.1 MB Notification: Performance of Templates: time 0.007195/0.4197, allocations: 4.134 MB / 344.6 MB, free: 0.9375 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)