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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001279/0.001279, allocations: 104.2 kB / 16.98 MB, free: 6.18 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.001049/0.001049, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.345/1.345, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05394/0.05394, allocations: 8.101 MB / 299.9 MB, free: 6.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 67.89 kB / 362.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2357, allocations: 51.51 MB / 413.9 MB, free: 25.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002488/0.2383, allocations: 1.908 MB / 415.8 MB, free: 23.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.24, allocations: 1.594 MB / 417.4 MB, free: 22.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2401, allocations: 4 kB / 417.4 MB, free: 22.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003911/0.2405, allocations: 143.2 kB / 417.6 MB, free: 21.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003287/0.2409, allocations: 151 kB / 417.7 MB, free: 21.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.2422, allocations: 0.8596 MB / 418.6 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.2426, allocations: 338.5 kB / 418.9 MB, free: 20.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.2428, allocations: 134.9 kB / 419 MB, free: 20.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.2429, allocations: 139.5 kB / 419.2 MB, free: 20.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.2431, allocations: 183.3 kB / 419.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.2432, allocations: 32 kB / 419.4 MB, free: 20.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003355/0.2435, allocations: 227.8 kB / 419.6 MB, free: 19.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.2436, allocations: 71.69 kB / 419.7 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2437, allocations: 171.1 kB / 419.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004627/0.2442, allocations: 0.5006 MB / 420.3 MB, free: 19.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2442, allocations: 4 kB / 420.3 MB, free: 19.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2442, allocations: 4 kB / 420.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.2442, allocations: 0 / 420.3 MB, free: 19.14 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.002446/0.2467, allocations: 0.9178 MB / 421.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.2467, allocations: 15.89 kB / 421.3 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.247, allocations: 52.53 kB / 421.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.2473, allocations: 311.7 kB / 421.6 MB, free: 17.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.2473, allocations: 20.81 kB / 421.7 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.46e-05/0.2474, allocations: 24.38 kB / 421.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004343/0.2478, allocations: 335.8 kB / 422 MB, free: 17.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.2478, allocations: 192 / 422 MB, free: 17.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.2479, allocations: 11.94 kB / 422 MB, free: 17.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2479, allocations: 12 kB / 422 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/0.2483, allocations: 321.6 kB / 422.3 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001413/0.2497, allocations: 1.365 MB / 423.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007513/0.2504, allocations: 0.5006 MB / 424.2 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.2507, allocations: 213 kB / 424.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007922/0.2515, allocations: 0.905 MB / 425.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004555/0.252, allocations: 366.5 kB / 425.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.803e-06/0.252, allocations: 0 / 425.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002877/0.2549, allocations: 1.106 MB / 426.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.2549, allocations: 195.9 kB / 427 MB, free: 12.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.2552, allocations: 257 kB / 427.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.2552, allocations: 37.7 kB / 427.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.574e-05/0.2553, allocations: 156.4 kB / 427.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.325e-05/0.2554, allocations: 110.5 kB / 427.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.2555, allocations: 82.11 kB / 427.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.046e-05/0.2556, allocations: 334.8 kB / 427.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.2558, allocations: 184.8 kB / 428.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.2561, allocations: 272.9 kB / 428.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004225/0.2604, allocations: 1.423 MB / 429.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.2604, allocations: 0 / 429.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001564/0.262, allocations: 0.8312 MB / 430.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.262, allocations: 29.7 kB / 430.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.262, allocations: 11.92 kB / 430.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.2632, allocations: 316.5 kB / 431 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.2635, allocations: 59.91 kB / 431 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003194/0.2667, allocations: 2.933 MB / 434 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.2671, allocations: 47.56 kB / 434 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.2671, allocations: 16 kB / 434 MB, free: 4.703 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.0002781/0.2674, allocations: 213.2 kB / 434.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.819e-05/0.2675, allocations: 31.7 kB / 434.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.2689, allocations: 0.7408 MB / 435 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.269, allocations: 7.938 kB / 435 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.269, allocations: 4 kB / 435 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.269, allocations: 3.984 kB / 435 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003403/0.2693, allocations: 473 kB / 435.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2693, allocations: 0 / 435.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.48e-05/0.2694, allocations: 27.98 kB / 435.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.2706, allocations: 304.5 kB / 435.8 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.2707, allocations: 12 kB / 435.8 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.2739, allocations: 2.93 MB / 438.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2739, allocations: 0 / 438.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.2756, allocations: 0.7413 MB / 439.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.2757, allocations: 108.8 kB / 439.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.864e-05/0.2758, allocations: 8 kB / 439.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.276, allocations: 12 kB / 439.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.2761, allocations: 31.95 kB / 439.7 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.2762, allocations: 15.94 kB / 439.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.2764, allocations: 196.4 kB / 439.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2764, allocations: 0 / 439.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.2769, allocations: 123.9 kB / 440 MB, free: 14.48 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.000258/0.2772, allocations: 129.2 kB / 440.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.2788, allocations: 0.7366 MB / 440.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.2788, allocations: 4.125 kB / 440.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009224/0.2797, allocations: 0.5135 MB / 441.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.28, allocations: 28.44 kB / 441.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.2811, allocations: 0.6202 MB / 442 MB, free: 12.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.2815, allocations: 0.7608 MB / 442.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.672e-05/0.2816, allocations: 31.42 kB / 442.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2816, allocations: 4 kB / 442.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of Templates: time 0.008345/0.2899, allocations: 5.651 MB / 448.5 MB, free: 5.891 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)