Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.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.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",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.001439/0.001439, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001583/0.001584, allocations: 200 kB / 18.01 MB, free: 5.055 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.32/1.32, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1733/0.1733, allocations: 37.99 MB / 309.2 MB, free: 5.945 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.001537/0.001537, allocations: 64.28 kB / 431.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09972, allocations: 55.24 MB / 486.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.006945/0.1067, allocations: 4.56 MB / 491.2 MB, free: 4.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.1092, allocations: 1.361 MB / 492.5 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003796/0.1096, allocations: 11.94 kB / 492.5 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.1111, allocations: 398.3 kB / 492.9 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007716/0.1119, allocations: 250.8 kB / 493.2 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005693/0.1125, allocations: 167.6 kB / 493.3 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007816/0.1133, allocations: 0.5646 MB / 493.9 MB, free: 1.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004891/0.1138, allocations: 285.5 kB / 494.2 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005316/0.1143, allocations: 266.9 kB / 494.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000636/0.115, allocations: 275.1 kB / 494.7 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.034e-05/0.1151, allocations: 32 kB / 494.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003714/0.1154, allocations: 123.8 kB / 494.9 MB, free: 0.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002527/0.1157, allocations: 195.5 kB / 495.1 MB, free: 360 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003582/0.1161, allocations: 222.9 kB / 495.3 MB, free: 136 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007757/0.1169, allocations: 0.5101 MB / 495.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1169, allocations: 0 / 495.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1169, allocations: 0 / 495.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.13e-05/0.1169, allocations: 0 / 495.8 MB, free: 15.62 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001356/0.1183, allocations: 0.7029 MB / 496.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1183, allocations: 15.89 kB / 496.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.71e-05/0.1184, allocations: 74.72 kB / 496.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005925/0.119, allocations: 84.41 kB / 496.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007068/0.1197, allocations: 415.1 kB / 497.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.1198, allocations: 29.38 kB / 497.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.1199, allocations: 43.88 kB / 497.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006856/0.1206, allocations: 484.8 kB / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.1206, allocations: 0 / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.1207, allocations: 12 kB / 497.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/0.1208, allocations: 28.98 kB / 497.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005528/0.1213, allocations: 359.6 kB / 498 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.1235, allocations: 1.725 MB / 499.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.1238, allocations: 145.2 kB / 499.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.124, allocations: 117.6 kB / 500 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.124, allocations: 4 kB / 500 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.124, allocations: 38.56 kB / 0.4883 GB, free: 11.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.124, allocations: 0 / 0.4883 GB, free: 11.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.001428/0.1255, allocations: 0.8843 MB / 0.4892 GB, free: 10.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.1255, allocations: 81.11 kB / 0.4892 GB, free: 10.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.1258, allocations: 308.7 kB / 0.4895 GB, free: 9.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.1259, allocations: 25.7 kB / 0.4896 GB, free: 9.703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.126, allocations: 263.3 kB / 0.4898 GB, free: 9.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.679e-05/0.1261, allocations: 59.11 kB / 0.4899 GB, free: 9.383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.878e-05/0.1262, allocations: 57.98 kB / 0.4899 GB, free: 9.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.1263, allocations: 346.7 kB / 0.4903 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.1265, allocations: 100.2 kB / 0.4903 GB, free: 8.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.1267, allocations: 205.2 kB / 0.4905 GB, free: 8.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.1271, allocations: 324.6 kB / 0.4909 GB, free: 8.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1271, allocations: 0 / 0.4909 GB, free: 8.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008585/0.1279, allocations: 473.5 kB / 0.4913 GB, free: 7.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.128, allocations: 8 kB / 0.4913 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005691/0.1285, allocations: 320.7 kB / 0.4916 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004821/0.129, allocations: 141 kB / 0.4918 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.1292, allocations: 55.91 kB / 0.4918 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.132, allocations: 2.451 MB / 0.4942 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.1322, allocations: 11.98 kB / 0.4942 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.1322, allocations: 16 kB / 0.4942 GB, free: 4.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002063/0.1324, allocations: 185.7 kB / 0.4944 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.1325, allocations: 35.62 kB / 0.4944 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004244/0.1329, allocations: 266.5 kB / 0.4947 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1329, allocations: 4 kB / 0.4947 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.1329, allocations: 0 / 0.4947 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1329, allocations: 0 / 0.4947 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.134, allocations: 0.739 MB / 0.4954 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.134, allocations: 3.984 kB / 0.4954 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.1343, allocations: 39.92 kB / 0.4955 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.1344, allocations: 36.83 kB / 0.4955 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.1344, allocations: 8.062 kB / 0.4955 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1344, allocations: 4 kB / 0.4955 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.1344, allocations: 4 kB / 0.4955 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005115/0.1349, allocations: 446.2 kB / 0.4959 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.364e-05/0.135, allocations: 100.8 kB / 0.496 GB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.898e-05/0.1351, allocations: 11.98 kB / 0.496 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.1352, allocations: 8 kB / 0.4961 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.598e-05/0.1353, allocations: 19.91 kB / 0.4961 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.1353, allocations: 8 kB / 0.4961 GB, free: 2.621 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001991/0.1355, allocations: 219.1 kB / 0.4963 GB, free: 2.406 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1355, allocations: 0 / 0.4963 GB, free: 2.406 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004266/0.1359, allocations: 84 kB / 0.4964 GB, free: 2.324 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007686/0.1367, allocations: 0.9925 MB / 0.4973 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006576/0.1374, allocations: 406.7 kB / 0.4977 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1374, allocations: 0 / 0.4977 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.1376, allocations: 181.8 kB / 0.4979 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.1381, allocations: 57.75 kB / 0.498 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004191/0.1423, allocations: 3.563 MB / 0.5014 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.1427, allocations: 0.838 MB / 0.5023 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001809/0.1429, allocations: 66.92 kB / 0.5023 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.143, allocations: 123.4 kB / 0.5024 GB, free: 11.83 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1431, allocations: 0 / 0.5024 GB, free: 11.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/0.1714, allocations: 7.47 MB / 0.5097 GB, free: 4.301 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.67, allocations: 16.23 kB / 0.5097 GB, free: 4.285 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1)