Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.VoltageStability,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_VoltageStability",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001599/0.001603, allocations: 182.4 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 94.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.267/0.267, allocations: 38.07 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004693/0.0004696, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.VoltageStability): time 0.01488/0.1259, allocations: 9.323 MB / 488.5 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009282/0.1352, allocations: 3.528 MB / 492 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.1367, allocations: 71.5 kB / 492.1 MB, free: 4.973 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.138, allocations: 310.1 kB / 492.4 MB, free: 4.668 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/AC3ph/Sensors.mo:213:5-214:73:writable] Warning: Conditional component ‘v_abc‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.003008/0.141, allocations: 0.6309 MB / 493 MB, free: 4.035 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003061/0.1441, allocations: 0.6976 MB / 493.7 MB, free: 3.336 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002008/0.1461, allocations: 0.8316 MB / 494.5 MB, free: 2.504 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003303/0.1495, allocations: 1.309 MB / 495.8 MB, free: 1.145 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.1508, allocations: 0.5099 MB / 496.3 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.1523, allocations: 0.6349 MB / 497 MB, free: 15.99 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000227/0.1526, allocations: 59.92 kB / 497 MB, free: 15.93 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.1536, allocations: 287.5 kB / 497.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008433/0.1545, allocations: 0.569 MB / 497.9 MB, free: 15.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004618/0.1549, allocations: 273 kB / 498.1 MB, free: 14.81 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002293/0.1573, allocations: 1.317 MB / 499.5 MB, free: 13.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.1573, allocations: 4 kB / 499.5 MB, free: 13.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1573, allocations: 0 / 499.5 MB, free: 13.49 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.016e-05/0.1573, allocations: 0 / 499.5 MB, free: 13.49 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.004325/0.1617, allocations: 1.401 MB / 0.4891 GB, free: 12.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.1618, allocations: 15.97 kB / 0.4891 GB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004377/0.1622, allocations: 206.2 kB / 0.4893 GB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002754/0.165, allocations: 286 kB / 0.4896 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/0.1676, allocations: 0.816 MB / 0.4904 GB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.1677, allocations: 86.34 kB / 0.4905 GB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006033/0.1683, allocations: 163.7 kB / 0.4906 GB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004283/0.1726, allocations: 1.823 MB / 0.4924 GB, free: 8.414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.451e-05/0.1727, allocations: 7.938 kB / 0.4924 GB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/0.1729, allocations: 55.98 kB / 0.4925 GB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005213/0.1735, allocations: 102.1 kB / 0.4926 GB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004291/0.1778, allocations: 1.468 MB / 0.494 GB, free: 6.773 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0149/0.1927, allocations: 8.281 MB / 0.5021 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.1951, allocations: 1.16 MB / 0.5032 GB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.1952, allocations: 20.62 kB / 0.5033 GB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/0.1953, allocations: 47.16 kB / 0.5033 GB, free: 12.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=82): time 4.268e-06/0.1953, allocations: 0 / 0.5033 GB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.006371/0.2017, allocations: 2.394 MB / 0.5056 GB, free: 10.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/0.2018, allocations: 85.77 kB / 0.5057 GB, free: 10.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.2033, allocations: 0.8173 MB / 0.5065 GB, free: 9.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.2034, allocations: 33.7 kB / 0.5066 GB, free: 9.375 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000698/0.2041, allocations: 0.7022 MB / 0.5072 GB, free: 8.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000397/0.2046, allocations: 307.8 kB / 0.5075 GB, free: 8.359 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.649e-05/0.2047, allocations: 35.98 kB / 0.5076 GB, free: 8.324 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.2049, allocations: 366.8 kB / 0.5079 GB, free: 7.957 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.2061, allocations: 439.7 kB / 0.5083 GB, free: 7.527 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/0.2078, allocations: 0.9851 MB / 0.5093 GB, free: 6.285 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.2094, allocations: 0.6313 MB / 0.5099 GB, free: 5.656 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.2095, allocations: 4 kB / 0.5099 GB, free: 5.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004999/0.2145, allocations: 1.702 MB / 0.5116 GB, free: 3.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.2145, allocations: 12 kB / 0.5116 GB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003008/0.2176, allocations: 0.9686 MB / 0.5125 GB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001484/0.2191, allocations: 250.6 kB / 0.5128 GB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002078/0.2212, allocations: 311.5 kB / 0.5131 GB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3135/0.5347, allocations: 4.844 MB / 0.5178 GB, free: 48.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.5361, allocations: 61.19 kB / 0.5179 GB, free: 48.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001517/0.5363, allocations: 67.06 kB / 0.5179 GB, free: 48.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009442/0.5372, allocations: 439.7 kB / 0.5183 GB, free: 48.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.5375, allocations: 97.47 kB / 0.5184 GB, free: 48.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/0.5399, allocations: 0.9326 MB / 0.5194 GB, free: 48.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.5399, allocations: 8.938 kB / 0.5194 GB, free: 48.44 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.54, allocations: 1.844 kB / 0.5194 GB, free: 48.44 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.54, allocations: 4.219 kB / 0.5194 GB, free: 48.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.546, allocations: 2.111 MB / 0.5214 GB, free: 47.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.546, allocations: 4.609 kB / 0.5214 GB, free: 47.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/0.5478, allocations: 188.2 kB / 0.5216 GB, free: 47.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.599e-05/0.5479, allocations: 6.109 kB / 0.5216 GB, free: 47.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.66e-05/0.548, allocations: 25.98 kB / 0.5216 GB, free: 47.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.269e-05/0.548, allocations: 7.938 kB / 0.5216 GB, free: 47.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.912e-06/0.548, allocations: 3 kB / 0.5217 GB, free: 47.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.5511, allocations: 1.46 MB / 0.5231 GB, free: 46.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.5515, allocations: 168.5 kB / 0.5232 GB, free: 46.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.5517, allocations: 22.19 kB / 0.5233 GB, free: 46.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007746/0.5525, allocations: 24.7 kB / 0.5233 GB, free: 46.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.5527, allocations: 56.67 kB / 0.5233 GB, free: 46.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.366e-05/0.5527, allocations: 23.33 kB / 0.5234 GB, free: 46.69 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001045/0.5538, allocations: 0.5404 MB / 0.5239 GB, free: 46.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.12e-07/0.5538, allocations: 0 / 0.5239 GB, free: 46.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001652/0.5555, allocations: 292.7 kB / 0.5242 GB, free: 46.44 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (line0.i[1],line0.i[2],line0.i[3],line1.i[1],line1.i[2],line1.i[3],line2.i[1],line2.i[2],line2.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.003405/0.5589, allocations: 2.508 MB / 0.5266 GB, free: 44.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003634/0.5626, allocations: 1.443 MB / 0.528 GB, free: 43.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.5626, allocations: 0 / 0.528 GB, free: 43.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009676/0.5636, allocations: 398.5 kB / 0.5284 GB, free: 43.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.5649, allocations: 161.3 kB / 0.5286 GB, free: 43.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01904/0.5839, allocations: 20.36 MB / 0.5484 GB, free: 26.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.585, allocations: 1.275 MB / 0.5497 GB, free: 26.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009451/0.586, allocations: 468.9 kB / 0.5501 GB, free: 25.66 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.586, allocations: 0 / 0.5501 GB, free: 25.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.928/3.514, allocations: 25.27 MB / 0.5748 GB, free: 2.602 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_VoltageStability_fmu --startTime=0 --stopTime=180 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transmission_VoltageStability.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.VoltageStability.pipe 2>&1)