Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 90.52 kB / 16.31 MB, free: 5.672 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.001253/0.001253, allocations: 182 kB / 17.21 MB, free: 5.59 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.694/1.694, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2332/0.2332, allocations: 38.05 MB / 309.7 MB, free: 6.031 MB / 254.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.0006069/0.0006071, allocations: 20 kB / 376.6 MB, free: 2.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3568, allocations: 56.32 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.002303/0.3592, allocations: 1.716 MB / 434.7 MB, free: 17.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006303/0.3598, allocations: 0.539 MB / 435.2 MB, free: 16.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.721e-05/0.3599, allocations: 0 / 435.2 MB, free: 16.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.3601, allocations: 7.922 kB / 435.2 MB, free: 16.51 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.886e-05/0.3601, allocations: 27.89 kB / 435.2 MB, free: 16.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.3604, allocations: 47.88 kB / 435.3 MB, free: 16.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.3606, allocations: 91.7 kB / 435.4 MB, free: 16.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.462e-05/0.3606, allocations: 4 kB / 435.4 MB, free: 16.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.4e-05/0.3607, allocations: 27.86 kB / 435.4 MB, free: 16.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.266e-05/0.3608, allocations: 35.89 kB / 435.4 MB, free: 16.28 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.3608, allocations: 0 / 435.4 MB, free: 16.28 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.3609, allocations: 47.88 kB / 435.5 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.992e-05/0.361, allocations: 39.91 kB / 435.5 MB, free: 16.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.361, allocations: 41.58 kB / 435.6 MB, free: 16.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.3611, allocations: 94 kB / 435.7 MB, free: 16.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3611, allocations: 0 / 435.7 MB, free: 16.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.3612, allocations: 8 kB / 435.7 MB, free: 16.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3612, allocations: 0 / 435.7 MB, free: 16.05 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0003857/0.3616, allocations: 468.4 kB / 436.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.3616, allocations: 12.03 kB / 436.1 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.387e-05/0.3616, allocations: 46.48 kB / 436.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.374e-05/0.3617, allocations: 19.77 kB / 436.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.3618, allocations: 199.2 kB / 436.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.3619, allocations: 0 / 436.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.3619, allocations: 8 kB / 436.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.362, allocations: 126.6 kB / 436.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3621, allocations: 0 / 436.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.3621, allocations: 0 / 436.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3621, allocations: 0 / 436.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.54e-05/0.3622, allocations: 96.23 kB / 436.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.3623, allocations: 202 kB / 436.8 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.3624, allocations: 154.9 kB / 437 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.413e-05/0.3625, allocations: 137.2 kB / 437.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.147e-06/0.3626, allocations: 4 kB / 437.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.3626, allocations: 30.56 kB / 437.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.012e-06/0.3626, allocations: 0 / 437.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0004708/0.3631, allocations: 479.8 kB / 437.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.3631, allocations: 109.1 kB / 437.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.227e-05/0.3632, allocations: 147 kB / 437.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.3632, allocations: 25.7 kB / 437.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.571e-05/0.3633, allocations: 92.8 kB / 438 MB, free: 13.51 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.784e-05/0.3634, allocations: 138 kB / 438.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-06/0.3634, allocations: 0 / 438.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.689e-05/0.3635, allocations: 338.8 kB / 438.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.712e-05/0.3635, allocations: 91.97 kB / 438.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.161e-05/0.3636, allocations: 91.97 kB / 438.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.3637, allocations: 182.9 kB / 438.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.3637, allocations: 0 / 438.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002457/0.364, allocations: 322.9 kB / 439.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.345e-05/0.3641, allocations: 85.62 kB / 439.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3641, allocations: 4.062 kB / 439.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.3641, allocations: 0 / 439.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.3641, allocations: 4 kB / 439.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.3641, allocations: 3.984 kB / 439.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.449e-05/0.3642, allocations: 23.69 kB / 439.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.3642, allocations: 4 kB / 439.2 MB, free: 12.21 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.3643, allocations: 235.4 kB / 439.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.228e-05/0.3644, allocations: 23.8 kB / 439.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.16e-05/0.3644, allocations: 9.969 kB / 439.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3644, allocations: 4 kB / 439.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3644, allocations: 0 / 439.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.3644, allocations: 0 / 439.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.3645, allocations: 241.2 kB / 439.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3645, allocations: 0 / 439.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3646, allocations: 0 / 439.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.3646, allocations: 3.984 kB / 439.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.3646, allocations: 4 kB / 439.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.3646, allocations: 4 kB / 439.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3646, allocations: 0 / 439.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000686/0.3653, allocations: 0.8965 MB / 440.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.3653, allocations: 100.7 kB / 440.7 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.3654, allocations: 8 kB / 440.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.96e-05/0.3654, allocations: 4 kB / 440.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.3654, allocations: 8 kB / 440.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.3655, allocations: 8 kB / 440.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.17e-05/0.3655, allocations: 112.6 kB / 440.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.3655, allocations: 0 / 440.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.3658, allocations: 67.97 kB / 440.9 MB, free: 10.39 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000915/0.3667, allocations: 1.445 MB / 442.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009332/0.3676, allocations: 1.589 MB / 444 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3676, allocations: 0 / 444 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006889/0.3683, allocations: 1.366 MB / 445.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.3686, allocations: 34.38 kB / 445.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.3704, allocations: 1.851 MB / 447.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.3706, allocations: 0.748 MB / 448 MB, free: 3.234 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.933e-05/0.3706, allocations: 8 kB / 448 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.3707, allocations: 43.41 kB / 448 MB, free: 3.184 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3707, allocations: 0 / 448 MB, free: 3.184 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.388, allocations: 4.326 MB / 452.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/0.3882, allocations: 195.3 kB / 452.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.935/2.323, allocations: 0 / 452.5 MB, free: 14.68 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) Environment - environmentSimulation: