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.0009349/0.0009348, allocations: 95.05 kB / 16.3 MB, free: 5.996 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.0009701/0.0009702, allocations: 180.5 kB / 17.19 MB, free: 5.906 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.476/1.476, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3059/0.3059, allocations: 38.04 MB / 309.7 MB, free: 9.035 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.0004658/0.0004659, allocations: 12 kB / 376.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1099, allocations: 56.33 MB / 432.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.004699/0.1146, allocations: 4.425 MB / 437.3 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1173, allocations: 1.455 MB / 438.8 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002868/0.1176, allocations: 23.88 kB / 438.8 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.118, allocations: 103.4 kB / 438.9 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00054/0.1185, allocations: 211.4 kB / 439.1 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004211/0.119, allocations: 167.6 kB / 439.3 MB, free: 352 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003481/0.1193, allocations: 283.4 kB / 439.6 MB, free: 68 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007849/0.1201, allocations: 0.523 MB / 440.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.1204, allocations: 187.3 kB / 440.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.1207, allocations: 175.4 kB / 440.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.1208, allocations: 16 kB / 440.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.1209, allocations: 75.88 kB / 440.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.1211, allocations: 159.6 kB / 440.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.606e-05/0.1212, allocations: 101.5 kB / 440.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.1216, allocations: 395 kB / 441.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.1216, allocations: 0 / 441.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1216, allocations: 4 kB / 441.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.1216, allocations: 0 / 441.2 MB, free: 14.41 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.001039/0.1227, allocations: 0.6249 MB / 441.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.1227, allocations: 16.02 kB / 441.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.933e-05/0.1228, allocations: 78.52 kB / 441.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005708/0.1234, allocations: 87.38 kB / 442 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006007/0.124, allocations: 390.1 kB / 442.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.1241, allocations: 25 kB / 442.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.1242, allocations: 43.98 kB / 442.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.1248, allocations: 480.7 kB / 442.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.1248, allocations: 8 kB / 442.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.1249, allocations: 15.94 kB / 442.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.125, allocations: 24.98 kB / 442.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005117/0.1255, allocations: 343.7 kB / 443.3 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.1276, allocations: 1.726 MB / 445 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.1278, allocations: 145.1 kB / 445.1 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.1279, allocations: 4.062 kB / 445.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.1279, allocations: 38.56 kB / 445.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.1279, allocations: 3.938 kB / 445.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.001388/0.1293, allocations: 0.8882 MB / 446.1 MB, free: 9.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.1293, allocations: 81.23 kB / 446.2 MB, free: 9.062 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.1296, allocations: 316.3 kB / 446.5 MB, free: 8.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.1297, allocations: 33.7 kB / 446.5 MB, free: 8.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.1298, allocations: 243.5 kB / 446.7 MB, free: 8.457 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.849e-05/0.1299, allocations: 63.09 kB / 446.8 MB, free: 8.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.292e-05/0.1299, allocations: 4 kB / 446.8 MB, free: 8.391 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.13, allocations: 338.8 kB / 447.1 MB, free: 8.051 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.1302, allocations: 104.2 kB / 447.2 MB, free: 7.949 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.1304, allocations: 201.2 kB / 447.4 MB, free: 7.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.1306, allocations: 136.6 kB / 447.6 MB, free: 7.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1306, allocations: 0 / 447.6 MB, free: 7.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008176/0.1314, allocations: 483.6 kB / 448 MB, free: 7.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1315, allocations: 7.938 kB / 448 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005527/0.132, allocations: 308.9 kB / 448.4 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004482/0.1325, allocations: 132.7 kB / 448.5 MB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.1327, allocations: 59.91 kB / 448.5 MB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.1353, allocations: 2.356 MB / 450.9 MB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.1355, allocations: 15.98 kB / 450.9 MB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.1355, allocations: 16 kB / 450.9 MB, free: 4.047 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.000174/0.1357, allocations: 185.7 kB / 451.1 MB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-05/0.1358, allocations: 31.62 kB / 451.1 MB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004303/0.1362, allocations: 274.4 kB / 451.4 MB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1362, allocations: 4 kB / 451.4 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.1362, allocations: 0 / 451.4 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1362, allocations: 0 / 451.4 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.1374, allocations: 0.743 MB / 452.2 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1374, allocations: 0 / 452.2 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.1376, allocations: 40.17 kB / 452.2 MB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.1377, allocations: 36.83 kB / 452.2 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.1378, allocations: 8 kB / 452.2 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1378, allocations: 0 / 452.2 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1378, allocations: 4 kB / 452.2 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005231/0.1383, allocations: 479.4 kB / 452.7 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.672e-05/0.1384, allocations: 112.7 kB / 452.8 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.1384, allocations: 4 kB / 452.8 MB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.1386, allocations: 15.98 kB / 452.8 MB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.1386, allocations: 12.08 kB / 452.9 MB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.1387, allocations: 11.98 kB / 452.9 MB, free: 1.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.1389, allocations: 215 kB / 453.1 MB, free: 1.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1389, allocations: 0 / 453.1 MB, free: 1.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004145/0.1393, allocations: 88 kB / 453.2 MB, free: 1.656 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008311/0.1401, allocations: 1.208 MB / 454.4 MB, free: 408 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1848/0.3249, allocations: 398.5 kB / 454.8 MB, free: 51.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/0.325, allocations: 0 / 454.8 MB, free: 51.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003241/0.3253, allocations: 185.8 kB / 454.9 MB, free: 51.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004901/0.3258, allocations: 61.59 kB / 455 MB, free: 51.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00308/0.3289, allocations: 4.48 MB / 459.5 MB, free: 48.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.3292, allocations: 0.8532 MB / 460.3 MB, free: 47.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.3294, allocations: 61.25 kB / 460.4 MB, free: 47.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3295, allocations: 123.1 kB / 460.5 MB, free: 47.63 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3295, allocations: 0 / 460.5 MB, free: 47.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.3475, allocations: 6.866 MB / 467.4 MB, free: 47.04 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.3476, allocations: 205.5 kB / 467.6 MB, free: 46.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.09, allocations: 3.938 kB / 467.6 MB, free: 46.8 MB / 382.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/linux/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) Environment - environmentSimulation: