Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001172/0.001172, 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.001415/0.001415, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.714/1.714, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001497, allocations: 55.94 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3484, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002868/0.3513, allocations: 1.503 MB / 326.8 MB, free: 0.6719 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.3534, allocations: 0.8963 MB / 327.7 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.278e-05/0.3535, allocations: 1.188 kB / 327.7 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.3536, allocations: 9.016 kB / 327.7 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.939e-05/0.3537, allocations: 18.14 kB / 327.7 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.354, allocations: 44.44 kB / 327.8 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002873/0.3543, allocations: 140.9 kB / 327.9 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.3545, allocations: 26.22 kB / 327.9 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007822/0.3553, allocations: 0.5607 MB / 328.5 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.3555, allocations: 78.38 kB / 328.6 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.3555, allocations: 9.312 kB / 328.6 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.705e-05/0.3556, allocations: 10.03 kB / 328.6 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.3557, allocations: 61.36 kB / 328.7 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.3559, allocations: 120.2 kB / 328.8 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.3563, allocations: 361.4 kB / 329.1 MB, free: 15.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3563, allocations: 4 kB / 329.1 MB, free: 15.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.3563, allocations: 1.125 kB / 329.1 MB, free: 15.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.3564, allocations: 0 / 329.1 MB, free: 15.18 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.00104/0.3574, allocations: 0.7213 MB / 329.8 MB, free: 14.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.016e-05/0.3575, allocations: 9.281 kB / 329.9 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.3576, allocations: 39.59 kB / 329.9 MB, free: 14.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004237/0.358, allocations: 273.5 kB / 330.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.3581, allocations: 4.844 kB / 330.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.563e-05/0.3581, allocations: 11.84 kB / 330.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004349/0.3586, allocations: 137.8 kB / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3586, allocations: 1.188 kB / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.3586, allocations: 3.156 kB / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.3587, allocations: 1.344 kB / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.3588, allocations: 61.45 kB / 330.4 MB, free: 14.06 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008376/0.3597, allocations: 460.4 kB / 330.8 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.3599, allocations: 101 kB / 330.9 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.3601, allocations: 84.94 kB / 331 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.3601, allocations: 1.062 kB / 331 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004247/0.3606, allocations: 201.8 kB / 331.2 MB, free: 13.37 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 1.392e-06/0.3606, allocations: 4.781 kB / 331.2 MB, free: 13.37 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009404/0.3615, allocations: 477.6 kB / 331.7 MB, free: 13.08 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001559/0.3617, allocations: 172.5 kB / 331.8 MB, free: 12.88 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007986/0.3625, allocations: 0.5123 MB / 332.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.3626, allocations: 29.3 kB / 332.4 MB, free: 12.51 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.243e-05/0.3626, allocations: 100.6 kB / 332.5 MB, free: 12.41 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.065e-05/0.3627, allocations: 26.88 kB / 332.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.3629, allocations: 88.69 kB / 332.6 MB, free: 12.32 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.363, allocations: 326.8 kB / 332.9 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.3631, allocations: 55.97 kB / 333 MB, free: 11.94 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.3633, allocations: 83.03 kB / 333.1 MB, free: 11.85 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.3637, allocations: 347.9 kB / 333.4 MB, free: 11.46 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3637, allocations: 4 kB / 333.4 MB, free: 11.45 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000601/0.3643, allocations: 388.2 kB / 333.8 MB, free: 11.04 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.3644, allocations: 122.8 kB / 333.9 MB, free: 10.9 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3645, allocations: 80 / 333.9 MB, free: 10.9 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.3645, allocations: 0 / 333.9 MB, free: 10.9 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.416e-05/0.3645, allocations: 8.031 kB / 333.9 MB, free: 10.89 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.3645, allocations: 4.094 kB / 333.9 MB, free: 10.89 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.3647, allocations: 19.92 kB / 333.9 MB, free: 10.87 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-05/0.3648, allocations: 55.94 kB / 334 MB, free: 10.81 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.0004016/0.3652, allocations: 370.6 kB / 334.3 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.594e-05/0.3652, allocations: 43.47 kB / 334.4 MB, free: 10.37 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.3654, allocations: 67.14 kB / 334.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3654, allocations: 0 / 334.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.3654, allocations: 4 kB / 334.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3654, allocations: 0 / 334.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.3665, allocations: 0.8134 MB / 335.3 MB, free: 9.402 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3665, allocations: 0 / 335.3 MB, free: 9.402 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.947e-06/0.3666, allocations: 0 / 335.3 MB, free: 9.402 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3666, allocations: 0 / 335.3 MB, free: 9.402 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.3666, allocations: 16 kB / 335.3 MB, free: 9.387 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3666, allocations: 0 / 335.3 MB, free: 9.387 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.3666, allocations: 7.922 kB / 335.3 MB, free: 9.379 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007114/0.3673, allocations: 0.5368 MB / 335.8 MB, free: 8.801 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003135/0.3677, allocations: 240.5 kB / 336.1 MB, free: 8.547 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.3677, allocations: 15.98 kB / 336.1 MB, free: 8.531 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.3679, allocations: 8.188 kB / 336.1 MB, free: 8.523 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.368, allocations: 35.91 kB / 336.1 MB, free: 8.488 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.055e-05/0.3681, allocations: 55.94 kB / 336.2 MB, free: 8.434 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0004743/0.3685, allocations: 390.9 kB / 336.6 MB, free: 8.051 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3685, allocations: 0 / 336.6 MB, free: 8.051 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.3688, allocations: 47.94 kB / 336.6 MB, free: 8.004 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.0001943/0.369, allocations: 118.9 kB / 336.7 MB, free: 7.879 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006022/0.3696, allocations: 441.5 kB / 337.2 MB, free: 7.398 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3697, allocations: 0 / 337.2 MB, free: 7.398 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004154/0.3701, allocations: 381.6 kB / 337.5 MB, free: 6.977 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00063/0.3707, allocations: 108.6 kB / 337.6 MB, free: 6.871 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.3719, allocations: 0.6588 MB / 338.3 MB, free: 6.188 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005156/0.3724, allocations: 0.8098 MB / 339.1 MB, free: 5.348 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 5.194e-05/0.3725, allocations: 8.656 kB / 339.1 MB, free: 5.336 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.56e-05/0.3725, allocations: 11.44 kB / 339.1 MB, free: 5.328 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3725, allocations: 0 / 339.1 MB, free: 5.328 MB / 270.1 MB Notification: Performance of Templates: time 0.008791/0.3813, allocations: 4.667 MB / 343.8 MB, free: 0.5625 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)