Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.002273/0.002273, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.002029/0.002029, allocations: 198.9 kB / 18 MB, free: 5.078 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.818/1.818, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.002028/0.002028, allocations: 51.94 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1339, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002808/0.1368, allocations: 1.509 MB / 376 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1388, allocations: 0.8895 MB / 376.9 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.823e-05/0.1388, allocations: 4 kB / 376.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.388e-05/0.1389, allocations: 11.86 kB / 376.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.766e-05/0.139, allocations: 19.84 kB / 376.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002439/0.1393, allocations: 43.89 kB / 377 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.1395, allocations: 147.7 kB / 377.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.1396, allocations: 24.23 kB / 377.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005768/0.1402, allocations: 0.5654 MB / 377.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.1404, allocations: 71.7 kB / 377.8 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.1404, allocations: 11.94 kB / 377.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.24e-05/0.1404, allocations: 12 kB / 377.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.981e-05/0.1405, allocations: 59.77 kB / 377.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.1407, allocations: 119.1 kB / 378 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.141, allocations: 370.8 kB / 378.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1411, allocations: 0 / 378.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1411, allocations: 0 / 378.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1411, allocations: 4 kB / 378.3 MB, free: 0.707 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.2234/0.3645, allocations: 0.7177 MB / 379 MB, free: 13.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.3646, allocations: 9.469 kB / 379 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.3647, allocations: 37.45 kB / 379.1 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.365, allocations: 274.1 kB / 379.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.365, allocations: 8.688 kB / 379.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.017e-05/0.365, allocations: 8.125 kB / 379.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.3654, allocations: 126.8 kB / 379.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3654, allocations: 1.375 kB / 379.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.3654, allocations: 11.88 kB / 379.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.3654, allocations: 1.375 kB / 379.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.3656, allocations: 58.5 kB / 379.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006601/0.3663, allocations: 466.5 kB / 380 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.3665, allocations: 99.8 kB / 380.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.3666, allocations: 86.53 kB / 380.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.14e-05/0.3666, allocations: 4.094 kB / 380.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.367, allocations: 206.4 kB / 380.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.367, allocations: 0 / 380.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007315/0.3678, allocations: 482.8 kB / 380.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.3678, allocations: 170.2 kB / 381 MB, free: 12.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006732/0.3685, allocations: 0.5099 MB / 381.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.3686, allocations: 30.22 kB / 381.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.205e-05/0.3686, allocations: 104.4 kB / 381.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.316e-05/0.3687, allocations: 30.89 kB / 381.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.3688, allocations: 82.81 kB / 381.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.887e-05/0.3689, allocations: 328.8 kB / 382.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.3691, allocations: 60.17 kB / 382.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.3692, allocations: 71.77 kB / 382.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.3696, allocations: 346.4 kB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3696, allocations: 0 / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005064/0.3701, allocations: 383.9 kB / 383 MB, free: 10.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.428e-05/0.3702, allocations: 123.4 kB / 383.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3702, allocations: 4.625 kB / 383.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.3702, allocations: 1.766 kB / 383.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.412e-05/0.3702, allocations: 3.375 kB / 383.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3703, allocations: 1.953 kB / 383.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.3704, allocations: 16.11 kB / 383.1 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.609e-05/0.3705, allocations: 59.09 kB / 383.2 MB, free: 10.72 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.0003046/0.3708, allocations: 375.5 kB / 383.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.917e-05/0.3709, allocations: 45.16 kB / 383.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.193e-05/0.371, allocations: 63.98 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.371, allocations: 1.875 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.371, allocations: 0 / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.371, allocations: 1.094 kB / 383.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009078/0.3719, allocations: 0.8146 MB / 384.5 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3719, allocations: 3.797 kB / 384.5 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-06/0.3719, allocations: 3.172 kB / 384.5 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3719, allocations: 1.188 kB / 384.5 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.372, allocations: 17.09 kB / 384.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.372, allocations: 8.938 kB / 384.5 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.372, allocations: 0 / 384.5 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005831/0.3726, allocations: 0.5383 MB / 385 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003071/0.3729, allocations: 240.7 kB / 385.3 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.496e-05/0.3729, allocations: 10.88 kB / 385.3 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.3731, allocations: 10.56 kB / 385.3 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.3732, allocations: 22.67 kB / 385.3 MB, free: 9.246 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.04e-05/0.3733, allocations: 70.27 kB / 385.4 MB, free: 9.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004526/0.3737, allocations: 386.2 kB / 385.8 MB, free: 9.027 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3737, allocations: 0 / 385.8 MB, free: 9.027 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.374, allocations: 46.66 kB / 385.8 MB, free: 9.023 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.0001337/0.3742, allocations: 113 kB / 385.9 MB, free: 8.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005205/0.3747, allocations: 444.6 kB / 386.3 MB, free: 8.586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3747, allocations: 1.219 kB / 386.3 MB, free: 8.586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000264/0.375, allocations: 378.2 kB / 386.7 MB, free: 8.254 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006495/0.3757, allocations: 125 kB / 386.8 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3767, allocations: 0.6559 MB / 387.5 MB, free: 7.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.377, allocations: 0.8022 MB / 388.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.55e-05/0.3771, allocations: 10.53 kB / 388.3 MB, free: 7.094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.459e-05/0.3771, allocations: 15.47 kB / 388.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3771, allocations: 4 kB / 388.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of Templates: time 0.01284/0.39, allocations: 4.756 MB / 393.1 MB, free: 6.504 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)