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.001353/0.001354, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002449/0.002449, allocations: 194.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001497/0.001498, allocations: 55.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.314, allocations: 46.63 MB / 325.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.004007/0.3181, allocations: 1.499 MB / 326.8 MB, free: 0.6875 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.3204, allocations: 0.8842 MB / 327.7 MB, free: 16 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.846e-05/0.3205, allocations: 0 / 327.7 MB, free: 16 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.3207, allocations: 9.297 kB / 327.7 MB, free: 8 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.3209, allocations: 23.47 kB / 327.7 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.3213, allocations: 47.69 kB / 327.8 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.3216, allocations: 141.7 kB / 327.9 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.3218, allocations: 26.05 kB / 327.9 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000857/0.3227, allocations: 0.5562 MB / 328.5 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.3229, allocations: 74.94 kB / 328.6 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.484e-05/0.3229, allocations: 13.56 kB / 328.6 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.199e-05/0.323, allocations: 9.594 kB / 328.6 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.3231, allocations: 65.45 kB / 328.7 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.3232, allocations: 111.4 kB / 328.8 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.3237, allocations: 370.2 kB / 329.1 MB, free: 15.2 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3237, allocations: 0 / 329.1 MB, free: 15.2 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3237, allocations: 0 / 329.1 MB, free: 15.2 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.3237, allocations: 1.188 kB / 329.1 MB, free: 15.2 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.00088/0.3246, allocations: 0.7287 MB / 329.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3247, allocations: 10.38 kB / 329.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.762e-05/0.3248, allocations: 41.81 kB / 329.9 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.3251, allocations: 274.5 kB / 330.2 MB, free: 14.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.3252, allocations: 8.844 kB / 330.2 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.3252, allocations: 8.344 kB / 330.2 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.3256, allocations: 129.6 kB / 330.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3256, allocations: 3.938 kB / 330.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.3256, allocations: 3.438 kB / 330.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3256, allocations: 1.188 kB / 330.3 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001552/0.3258, allocations: 57.62 kB / 330.4 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009308/0.3267, allocations: 468.8 kB / 330.8 MB, free: 13.66 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002637/0.327, allocations: 96.52 kB / 330.9 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.3272, allocations: 81.27 kB / 331 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.3273, allocations: 9.328 kB / 331 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005109/0.3278, allocations: 206.8 kB / 331.2 MB, free: 13.38 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 1.402e-06/0.3278, allocations: 0 / 331.2 MB, free: 13.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.001109/0.3289, allocations: 477.7 kB / 331.7 MB, free: 13.09 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.3291, allocations: 168.5 kB / 331.9 MB, free: 12.9 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007676/0.3298, allocations: 0.5077 MB / 332.4 MB, free: 12.56 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.3299, allocations: 38.11 kB / 332.4 MB, free: 12.52 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.482e-05/0.33, allocations: 96.56 kB / 332.5 MB, free: 12.43 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.463e-05/0.33, allocations: 34.52 kB / 332.5 MB, free: 12.4 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.3301, allocations: 79.73 kB / 332.6 MB, free: 12.36 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3303, allocations: 331.9 kB / 332.9 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.3304, allocations: 55.97 kB / 333 MB, free: 11.97 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.3306, allocations: 86.95 kB / 333.1 MB, free: 11.88 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003427/0.3309, allocations: 339.8 kB / 333.4 MB, free: 11.49 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3309, allocations: 4 kB / 333.4 MB, free: 11.49 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005317/0.3315, allocations: 388.3 kB / 333.8 MB, free: 11.08 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.3316, allocations: 130.8 kB / 333.9 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3316, allocations: 0 / 333.9 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3316, allocations: 0 / 333.9 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.746e-05/0.3317, allocations: 4 kB / 333.9 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.3317, allocations: 112 / 333.9 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.3318, allocations: 15.92 kB / 333.9 MB, free: 10.91 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.276e-05/0.3319, allocations: 55.94 kB / 334 MB, free: 10.85 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.0003998/0.3323, allocations: 374.9 kB / 334.4 MB, free: 10.45 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.3324, allocations: 39.53 kB / 334.4 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.3325, allocations: 63.16 kB / 334.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.3325, allocations: 0 / 334.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3325, allocations: 0 / 334.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.3325, allocations: 3.984 kB / 334.5 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/0.3338, allocations: 0.8212 MB / 335.3 MB, free: 9.438 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3338, allocations: 0 / 335.3 MB, free: 9.438 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-06/0.3339, allocations: 0 / 335.3 MB, free: 9.438 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3339, allocations: 4 kB / 335.3 MB, free: 9.434 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.3339, allocations: 12 kB / 335.3 MB, free: 9.422 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3339, allocations: 0 / 335.3 MB, free: 9.422 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3339, allocations: 3.938 kB / 335.3 MB, free: 9.418 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.3346, allocations: 0.5368 MB / 335.8 MB, free: 8.84 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.335, allocations: 240.5 kB / 336.1 MB, free: 8.586 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.417e-05/0.335, allocations: 12 kB / 336.1 MB, free: 8.574 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.3352, allocations: 19.97 kB / 336.1 MB, free: 8.555 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.3353, allocations: 35.89 kB / 336.1 MB, free: 8.52 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.116e-05/0.3354, allocations: 55.94 kB / 336.2 MB, free: 8.465 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0004925/0.3359, allocations: 386.9 kB / 336.6 MB, free: 8.086 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3359, allocations: 0 / 336.6 MB, free: 8.086 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.3362, allocations: 47.98 kB / 336.6 MB, free: 8.039 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.0002025/0.3364, allocations: 119.1 kB / 336.7 MB, free: 7.914 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006522/0.3371, allocations: 437.5 kB / 337.2 MB, free: 7.438 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3371, allocations: 4.062 kB / 337.2 MB, free: 7.434 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004585/0.3376, allocations: 381.5 kB / 337.5 MB, free: 7.012 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.3382, allocations: 112.4 kB / 337.6 MB, free: 6.902 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.3394, allocations: 0.6588 MB / 338.3 MB, free: 6.219 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.3398, allocations: 0.802 MB / 339.1 MB, free: 5.387 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 4.498e-05/0.3398, allocations: 8.656 kB / 339.1 MB, free: 5.375 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.194e-05/0.3399, allocations: 11.44 kB / 339.1 MB, free: 5.367 MB / 270.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3399, allocations: 4 kB / 339.1 MB, free: 5.363 MB / 270.1 MB Notification: Performance of Templates: time 0.008583/0.3485, allocations: 4.663 MB / 343.8 MB, free: 0.6016 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)