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.001266/0.001266, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001942/0.001942, allocations: 193.1 kB / 16.13 MB, free: 6.668 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.756/1.756, allocations: 205.1 MB / 222 MB, free: 4.742 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.001479/0.001479, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3266, allocations: 46.62 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003029/0.3297, allocations: 1.564 MB / 326.2 MB, free: 0.6992 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.3321, allocations: 0.9115 MB / 327.1 MB, free: 12 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.611e-05/0.3322, allocations: 0 / 327.1 MB, free: 12 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.3324, allocations: 6.188 kB / 327.2 MB, free: 8 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.3325, allocations: 19.09 kB / 327.2 MB, free: 15.99 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.333, allocations: 43.38 kB / 327.2 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.3331, allocations: 109.6 kB / 327.3 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.3333, allocations: 14.02 kB / 327.3 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007269/0.334, allocations: 0.5603 MB / 327.9 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.3341, allocations: 69.27 kB / 328 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.3342, allocations: 3.625 kB / 328 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.871e-05/0.3342, allocations: 4.844 kB / 328 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.3344, allocations: 66.58 kB / 328 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.3345, allocations: 115.8 kB / 328.1 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.3349, allocations: 362.2 kB / 328.5 MB, free: 15.24 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3349, allocations: 0 / 328.5 MB, free: 15.24 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3349, allocations: 0 / 328.5 MB, free: 15.24 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.3349, allocations: 0 / 328.5 MB, free: 15.24 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.0009371/0.3359, allocations: 0.7101 MB / 329.2 MB, free: 14.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.3359, allocations: 13.98 kB / 329.2 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.339e-05/0.336, allocations: 43.91 kB / 329.3 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.3364, allocations: 272.5 kB / 329.5 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.3364, allocations: 8.812 kB / 329.5 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.3365, allocations: 7.969 kB / 329.5 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.3368, allocations: 129.5 kB / 329.7 MB, free: 14.17 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3368, allocations: 1.031 kB / 329.7 MB, free: 14.17 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.3369, allocations: 15.53 kB / 329.7 MB, free: 14.16 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.3369, allocations: 0.8438 kB / 329.7 MB, free: 14.16 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.3371, allocations: 57.62 kB / 329.7 MB, free: 14.13 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007571/0.3378, allocations: 468.5 kB / 330.2 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.338, allocations: 96.34 kB / 330.3 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.3382, allocations: 84.52 kB / 330.4 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.769e-06/0.3382, allocations: 1.312 kB / 330.4 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.3387, allocations: 210.8 kB / 330.6 MB, free: 13.43 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.3387, allocations: 0 / 330.6 MB, free: 13.43 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009066/0.3396, allocations: 473 kB / 331.1 MB, free: 13.15 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/0.3398, allocations: 169.5 kB / 331.2 MB, free: 12.95 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007736/0.3406, allocations: 0.5119 MB / 331.7 MB, free: 12.61 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.3407, allocations: 29.11 kB / 331.8 MB, free: 12.58 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.915e-05/0.3407, allocations: 97.78 kB / 331.9 MB, free: 12.49 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.442e-05/0.3408, allocations: 38.39 kB / 331.9 MB, free: 12.46 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.341, allocations: 87.66 kB / 332 MB, free: 12.4 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.3411, allocations: 329.4 kB / 332.3 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.3413, allocations: 56.03 kB / 332.4 MB, free: 12.05 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.3414, allocations: 76.47 kB / 332.4 MB, free: 12 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.3419, allocations: 342.6 kB / 332.8 MB, free: 11.68 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3419, allocations: 0 / 332.8 MB, free: 11.68 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005672/0.3425, allocations: 397.9 kB / 333.2 MB, free: 11.29 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.3426, allocations: 122.8 kB / 333.3 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3426, allocations: 4 kB / 333.3 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3426, allocations: 0 / 333.3 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.422e-05/0.3426, allocations: 0 / 333.3 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.3427, allocations: 112 / 333.3 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.3428, allocations: 19.92 kB / 333.3 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.032e-05/0.3429, allocations: 63.88 kB / 333.4 MB, free: 11.05 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.000329/0.3432, allocations: 358.9 kB / 333.7 MB, free: 10.67 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.289e-05/0.3433, allocations: 43.53 kB / 333.8 MB, free: 10.62 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-05/0.3434, allocations: 71.12 kB / 333.8 MB, free: 10.55 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3434, allocations: 7.984 kB / 333.8 MB, free: 10.54 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3434, allocations: 0 / 333.8 MB, free: 10.54 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3434, allocations: 0 / 333.8 MB, free: 10.54 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.3446, allocations: 0.8134 MB / 334.6 MB, free: 9.648 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3446, allocations: 4 kB / 334.6 MB, free: 9.645 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.434e-06/0.3446, allocations: 0 / 334.6 MB, free: 9.645 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3446, allocations: 3.938 kB / 334.6 MB, free: 9.641 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.3446, allocations: 15.98 kB / 334.7 MB, free: 9.625 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3447, allocations: 4 kB / 334.7 MB, free: 9.621 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3447, allocations: 3.938 kB / 334.7 MB, free: 9.617 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007106/0.3454, allocations: 0.533 MB / 335.2 MB, free: 9.043 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.3457, allocations: 244.5 kB / 335.4 MB, free: 8.785 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.3458, allocations: 12 kB / 335.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3459, allocations: 8 kB / 335.5 MB, free: 8.766 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.3461, allocations: 31.91 kB / 335.5 MB, free: 8.734 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/0.3461, allocations: 63.92 kB / 335.6 MB, free: 8.672 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0004638/0.3466, allocations: 382.9 kB / 335.9 MB, free: 8.301 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3466, allocations: 0 / 335.9 MB, free: 8.301 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002957/0.3469, allocations: 44 kB / 336 MB, free: 8.258 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.0001611/0.3471, allocations: 114.9 kB / 336.1 MB, free: 8.137 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005457/0.3476, allocations: 437.5 kB / 336.5 MB, free: 7.66 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3476, allocations: 0 / 336.5 MB, free: 7.66 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003456/0.348, allocations: 373.8 kB / 336.9 MB, free: 7.246 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006173/0.3486, allocations: 118.1 kB / 337 MB, free: 7.129 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.3498, allocations: 0.7762 MB / 337.8 MB, free: 6.328 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.3503, allocations: 0.7947 MB / 338.6 MB, free: 5.508 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 5.367e-05/0.3504, allocations: 12.64 kB / 338.6 MB, free: 5.492 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.3504, allocations: 11.44 kB / 338.6 MB, free: 5.484 MB / 270.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3504, allocations: 0 / 338.6 MB, free: 5.484 MB / 270.1 MB Notification: Performance of Templates: time 0.007892/0.3583, allocations: 4.384 MB / 343 MB, free: 1.008 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)