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.001005/0.001005, allocations: 107.8 kB / 17.07 MB, free: 5.68 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.0009688/0.0009688, allocations: 194.9 kB / 18.01 MB, free: 5.02 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.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04597/0.04597, allocations: 8.099 MB / 300 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 363.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2113, allocations: 51.53 MB / 414.7 MB, free: 25.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002403/0.2138, allocations: 1.897 MB / 416.6 MB, free: 23.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.2152, allocations: 1.61 MB / 418.2 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.419e-05/0.2153, allocations: 4 kB / 418.2 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.2156, allocations: 135.2 kB / 418.3 MB, free: 21.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002679/0.2159, allocations: 151 kB / 418.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.2171, allocations: 0.8635 MB / 419.3 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003254/0.2174, allocations: 358.5 kB / 419.7 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.2176, allocations: 130.9 kB / 419.8 MB, free: 20.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.441e-05/0.2177, allocations: 135.5 kB / 420 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001922/0.2179, allocations: 183.3 kB / 420.1 MB, free: 19.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.218, allocations: 36 kB / 420.2 MB, free: 19.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002717/0.2182, allocations: 215.8 kB / 420.4 MB, free: 19.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.116e-05/0.2183, allocations: 75.69 kB / 420.5 MB, free: 19.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.2184, allocations: 167.2 kB / 420.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004728/0.2189, allocations: 0.5081 MB / 421.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2189, allocations: 0 / 421.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2189, allocations: 4 kB / 421.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.2189, allocations: 0 / 421.1 MB, free: 18.95 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.002236/0.2212, allocations: 0.9256 MB / 422.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2212, allocations: 11.89 kB / 422.1 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002228/0.2215, allocations: 52.53 kB / 422.1 MB, free: 17.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.2218, allocations: 303.8 kB / 422.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.2218, allocations: 16.81 kB / 422.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.2218, allocations: 32.36 kB / 422.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004433/0.2223, allocations: 335.7 kB / 422.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.2223, allocations: 192 / 422.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.946e-05/0.2223, allocations: 15.94 kB / 422.8 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.2223, allocations: 8 kB / 422.8 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.2227, allocations: 321.6 kB / 423.1 MB, free: 16.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.224, allocations: 1.361 MB / 424.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006766/0.2247, allocations: 0.5078 MB / 425 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.225, allocations: 208.9 kB / 425.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007344/0.2257, allocations: 0.8972 MB / 426.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003669/0.2261, allocations: 374.5 kB / 426.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.874e-06/0.2261, allocations: 0 / 426.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002649/0.2287, allocations: 1.106 MB / 427.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.2288, allocations: 195.9 kB / 427.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.229, allocations: 253 kB / 428 MB, free: 11.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/0.229, allocations: 41.7 kB / 428 MB, free: 11.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/0.2291, allocations: 160.4 kB / 428.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.538e-05/0.2292, allocations: 102.5 kB / 428.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.2293, allocations: 86.11 kB / 428.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.138e-05/0.2294, allocations: 334.8 kB / 428.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.2296, allocations: 184.8 kB / 428.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.2299, allocations: 276.8 kB / 429.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004343/0.2342, allocations: 1.419 MB / 430.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2342, allocations: 0 / 430.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001467/0.2357, allocations: 0.8275 MB / 431.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.2357, allocations: 33.7 kB / 431.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2357, allocations: 7.984 kB / 431.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.2369, allocations: 320.5 kB / 431.8 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.2371, allocations: 55.91 kB / 431.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002908/0.24, allocations: 2.934 MB / 434.8 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.2403, allocations: 43.56 kB / 434.8 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.2403, allocations: 16 kB / 434.8 MB, free: 4.516 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.0001995/0.2405, allocations: 218.1 kB / 435 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.2406, allocations: 23.72 kB / 435 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/0.2419, allocations: 0.741 MB / 435.8 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.242, allocations: 7.938 kB / 435.8 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.242, allocations: 8 kB / 435.8 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.242, allocations: 3.984 kB / 435.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002701/0.2423, allocations: 469 kB / 436.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2423, allocations: 4 kB / 436.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.803e-05/0.2424, allocations: 27.92 kB / 436.3 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.2434, allocations: 308.5 kB / 436.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.2435, allocations: 8 kB / 436.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002921/0.2464, allocations: 2.922 MB / 439.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2464, allocations: 4 kB / 439.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.2479, allocations: 0.7411 MB / 440.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.852e-05/0.248, allocations: 108.8 kB / 440.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.323e-05/0.2481, allocations: 8 kB / 440.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.2483, allocations: 12 kB / 440.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.875e-05/0.2484, allocations: 27.95 kB / 440.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.2484, allocations: 12 kB / 440.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001762/0.2486, allocations: 200.3 kB / 440.6 MB, free: 14.42 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2486, allocations: 0 / 440.6 MB, free: 14.42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000456/0.2491, allocations: 131.9 kB / 440.8 MB, free: 14.29 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.0001797/0.2493, allocations: 127.2 kB / 440.9 MB, free: 14.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.2505, allocations: 0.7328 MB / 441.6 MB, free: 13.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2505, allocations: 4.125 kB / 441.6 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008154/0.2513, allocations: 0.5174 MB / 442.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.2516, allocations: 20.44 kB / 442.2 MB, free: 12.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008907/0.2525, allocations: 0.5834 MB / 442.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.2528, allocations: 0.7725 MB / 443.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.735e-05/0.2529, allocations: 30.36 kB / 443.5 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.467e-05/0.2529, allocations: 23.44 kB / 443.6 MB, free: 11.37 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2529, allocations: 0 / 443.6 MB, free: 11.37 MB / 318.1 MB Notification: Performance of Templates: time 0.01013/0.2631, allocations: 6.452 MB / 450 MB, free: 4.941 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 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)