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.007318/0.007318, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001302/0.001302, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.85/1.85, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.00124/0.00124, allocations: 47.94 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1368, allocations: 46.62 MB / 373.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002928/0.1398, allocations: 1.505 MB / 374.7 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.142, allocations: 0.8894 MB / 375.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.296e-05/0.1421, allocations: 4 kB / 375.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.1423, allocations: 15.86 kB / 375.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.1424, allocations: 23.84 kB / 375.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.1428, allocations: 43.89 kB / 375.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.143, allocations: 143.7 kB / 375.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1432, allocations: 20.23 kB / 375.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007276/0.1439, allocations: 0.5577 MB / 376.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001469/0.1441, allocations: 75.64 kB / 376.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.462e-05/0.1441, allocations: 8 kB / 376.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.089e-05/0.1441, allocations: 8 kB / 376.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.1443, allocations: 63.77 kB / 376.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.1445, allocations: 119.1 kB / 376.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005393/0.145, allocations: 370.7 kB / 377 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.145, allocations: 0 / 377 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.145, allocations: 0 / 377 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.145, allocations: 0 / 377 MB, free: 0.7148 MB / 318.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.3399/0.4849, allocations: 0.7167 MB / 377.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.986e-05/0.485, allocations: 12.25 kB / 377.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.4852, allocations: 38.28 kB / 377.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.4857, allocations: 276.2 kB / 378 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.956e-05/0.4858, allocations: 10.75 kB / 378 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.4858, allocations: 8.625 kB / 378 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.4864, allocations: 126.8 kB / 378.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.4864, allocations: 0.8906 kB / 378.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.925e-05/0.4865, allocations: 8.438 kB / 378.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.4865, allocations: 1.734 kB / 378.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002075/0.4867, allocations: 62.5 kB / 378.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.488, allocations: 460.5 kB / 378.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.4883, allocations: 102.3 kB / 378.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.4886, allocations: 90.53 kB / 378.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.4886, allocations: 0 / 378.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005836/0.4892, allocations: 203.8 kB / 379.1 MB, free: 12.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.835e-06/0.4892, allocations: 2.062 kB / 379.1 MB, free: 12.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001202/0.4904, allocations: 474.8 kB / 379.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.4905, allocations: 172.4 kB / 379.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.4916, allocations: 0.5116 MB / 380.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.4917, allocations: 33.55 kB / 380.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.399e-05/0.4918, allocations: 98.86 kB / 380.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/0.4919, allocations: 34.27 kB / 380.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.4921, allocations: 85.34 kB / 380.5 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.091e-05/0.4922, allocations: 329.5 kB / 380.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.4923, allocations: 55.8 kB / 380.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.4925, allocations: 78.09 kB / 380.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.4929, allocations: 349 kB / 381.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.4929, allocations: 0 / 381.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006721/0.4936, allocations: 385.4 kB / 381.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.538e-05/0.4937, allocations: 127.3 kB / 381.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4937, allocations: 1.219 kB / 381.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.4938, allocations: 7.203 kB / 381.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.79e-05/0.4938, allocations: 3.109 kB / 381.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.4938, allocations: 0 / 381.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.494, allocations: 11.47 kB / 381.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.992e-05/0.4941, allocations: 57.38 kB / 381.8 MB, free: 10.96 MB / 318.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.0004507/0.4946, allocations: 370 kB / 382.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.845e-05/0.4946, allocations: 40.66 kB / 382.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.4948, allocations: 65.36 kB / 382.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4948, allocations: 4.406 kB / 382.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.4948, allocations: 1.125 kB / 382.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4948, allocations: 0 / 382.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.4962, allocations: 0.8287 MB / 383.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.4962, allocations: 0 / 383.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.644e-06/0.4962, allocations: 4.562 kB / 383.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4962, allocations: 0.9844 kB / 383.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.884e-05/0.4963, allocations: 13.09 kB / 383.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4963, allocations: 4.781 kB / 383.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4963, allocations: 0.6562 kB / 383.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007618/0.4971, allocations: 0.5285 MB / 383.7 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003723/0.4975, allocations: 245.3 kB / 383.9 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.726e-05/0.4975, allocations: 13.09 kB / 383.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.4977, allocations: 9.312 kB / 383.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.4978, allocations: 33.03 kB / 384 MB, free: 9.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-05/0.4979, allocations: 63.56 kB / 384 MB, free: 9.461 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000564/0.4985, allocations: 390.6 kB / 384.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4985, allocations: 1.344 kB / 384.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000349/0.4988, allocations: 45 kB / 384.5 MB, free: 9.25 MB / 318.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.0001873/0.499, allocations: 114.6 kB / 384.6 MB, free: 9.156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006369/0.4997, allocations: 440.7 kB / 385 MB, free: 8.816 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4997, allocations: 0 / 385 MB, free: 8.816 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003317/0.5, allocations: 379.7 kB / 385.4 MB, free: 8.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007247/0.5008, allocations: 133.7 kB / 385.5 MB, free: 8.441 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.5021, allocations: 0.6488 MB / 386.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.5025, allocations: 0.8032 MB / 387 MB, free: 7.332 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.789e-05/0.5025, allocations: 12.56 kB / 387 MB, free: 7.324 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.899e-05/0.5026, allocations: 12.56 kB / 387 MB, free: 7.316 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5026, allocations: 0 / 387 MB, free: 7.316 MB / 318.1 MB Notification: Performance of Templates: time 0.0135/0.5161, allocations: 4.664 MB / 391.7 MB, free: 6.758 MB / 318.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)