Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSysPro.Examples.OneSourceOneLigneWithFault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault") translateModel(PowerSysPro.Examples.OneSourceOneLigneWithFault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 101.3 kB / 16.02 MB, free: 6.301 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.001429/0.001429, allocations: 192 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05485/0.05485, allocations: 8.1 MB / 298.9 MB, free: 6.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 63.89 kB / 361.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2255, allocations: 51.51 MB / 412.7 MB, free: 25.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002391/0.2279, allocations: 1.951 MB / 414.7 MB, free: 23.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.2297, allocations: 1.579 MB / 416.3 MB, free: 22.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000212/0.2299, allocations: 4 kB / 416.3 MB, free: 22.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004314/0.2304, allocations: 119.5 kB / 416.4 MB, free: 22.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004722/0.2308, allocations: 135.3 kB / 416.5 MB, free: 22.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.2322, allocations: 0.8133 MB / 417.3 MB, free: 21.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004952/0.2327, allocations: 342.6 kB / 417.7 MB, free: 20.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.233, allocations: 138.9 kB / 417.8 MB, free: 20.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.2332, allocations: 135.5 kB / 417.9 MB, free: 20.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.2334, allocations: 183.3 kB / 418.1 MB, free: 20.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.711e-05/0.2334, allocations: 36 kB / 418.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003843/0.2338, allocations: 215.8 kB / 418.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.089e-05/0.2339, allocations: 71.69 kB / 418.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.234, allocations: 175.2 kB / 418.6 MB, free: 19.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005376/0.2346, allocations: 0.5083 MB / 419.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2346, allocations: 0 / 419.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2346, allocations: 0 / 419.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.2346, allocations: 0 / 419.1 MB, free: 19.41 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002298/0.2369, allocations: 0.9178 MB / 420 MB, free: 18.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.237, allocations: 8.031 kB / 420 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002589/0.2372, allocations: 60.47 kB / 420.1 MB, free: 18.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.2375, allocations: 299.8 kB / 420.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.2376, allocations: 20.81 kB / 420.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.2376, allocations: 28.36 kB / 420.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.2381, allocations: 335.7 kB / 420.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2381, allocations: 192 / 420.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.2382, allocations: 19.94 kB / 420.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2382, allocations: 4 kB / 420.8 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003934/0.2386, allocations: 321.6 kB / 421.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.2399, allocations: 1.365 MB / 422.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/0.2407, allocations: 0.5078 MB / 423 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.2409, allocations: 213 kB / 423.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008243/0.2417, allocations: 0.9011 MB / 424.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004406/0.2422, allocations: 367.1 kB / 424.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.104e-06/0.2422, allocations: 0 / 424.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002753/0.245, allocations: 1.11 MB / 425.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.245, allocations: 191.9 kB / 425.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.2453, allocations: 257 kB / 426 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.2453, allocations: 37.7 kB / 426 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/0.2454, allocations: 164.4 kB / 426.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.2454, allocations: 98.5 kB / 426.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.2456, allocations: 78.12 kB / 426.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.332e-05/0.2456, allocations: 346.8 kB / 426.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.2459, allocations: 180.8 kB / 426.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.2461, allocations: 276.8 kB / 427.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004012/0.2502, allocations: 1.419 MB / 428.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.2502, allocations: 0 / 428.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001498/0.2517, allocations: 0.8273 MB / 429.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.62e-05/0.2517, allocations: 33.7 kB / 429.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.2518, allocations: 4 kB / 429.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.2529, allocations: 320.5 kB / 429.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.2532, allocations: 59.91 kB / 429.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/0.2564, allocations: 2.937 MB / 432.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.2568, allocations: 51.5 kB / 432.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.2569, allocations: 16 kB / 432.8 MB, free: 4.973 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: lnFault.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean lnFault.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real lnFault.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.lnFault.myFault.fault,lnFault.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im,lnFault.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003089/0.2572, allocations: 207.8 kB / 433 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-05/0.2573, allocations: 23.72 kB / 433 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.2587, allocations: 0.7449 MB / 433.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.2587, allocations: 7.938 kB / 433.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2588, allocations: 7.938 kB / 433.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2588, allocations: 3.984 kB / 433.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.2591, allocations: 469 kB / 434.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2591, allocations: 4 kB / 434.2 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.619e-05/0.2592, allocations: 27.98 kB / 434.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/0.2603, allocations: 308.5 kB / 434.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.2603, allocations: 8 kB / 434.6 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003015/0.2634, allocations: 2.926 MB / 437.5 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2634, allocations: 0 / 437.5 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.2651, allocations: 0.7411 MB / 438.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.2652, allocations: 108.8 kB / 438.4 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.824e-05/0.2653, allocations: 12 kB / 438.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.2655, allocations: 15.98 kB / 438.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.2656, allocations: 27.95 kB / 438.4 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.2656, allocations: 16 kB / 438.4 MB, free: 15.06 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.2659, allocations: 192.4 kB / 438.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2659, allocations: 0 / 438.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005565/0.2664, allocations: 127.9 kB / 438.7 MB, free: 14.75 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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,lnFault.myFault.Y.re,lnFault.myFault.Y.im,lnFault.myFault.fault) * Number of discrete states: 7 ($whenCondition4,lnFault.myFault.Y.im,lnFault.myFault.Y.re,$whenCondition3,$whenCondition2,lnFault.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002829/0.2667, allocations: 129.5 kB / 438.9 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.2683, allocations: 0.7404 MB / 439.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2683, allocations: 0 / 439.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000906/0.2692, allocations: 0.5257 MB / 440.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.2695, allocations: 24.44 kB / 440.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.2708, allocations: 0.6895 MB / 440.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.2713, allocations: 0.7647 MB / 441.6 MB, free: 11.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001426/0.2715, allocations: 34.34 kB / 441.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.334e-05/0.2715, allocations: 23.44 kB / 441.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2715, allocations: 0 / 441.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of Templates: time 0.01083/0.2824, allocations: 6.453 MB / 448.1 MB, free: 5.293 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.makefile (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.sim & ./PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)