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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> 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.001565/0.001565, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002121/0.002121, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.426/1.426, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1771/0.1771, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 65.67 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.0926, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.006439/0.09908, allocations: 4.568 MB / 461.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.1013, allocations: 1.305 MB / 462.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002878/0.1016, allocations: 15.88 kB / 462.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.1027, allocations: 398.3 kB / 463.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006256/0.1034, allocations: 254.8 kB / 463.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.1038, allocations: 171.6 kB / 463.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006352/0.1045, allocations: 0.5607 MB / 464.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004297/0.1049, allocations: 281.2 kB / 464.5 MB, free: 400 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003874/0.1053, allocations: 254.9 kB / 464.7 MB, free: 144 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005167/0.1059, allocations: 275.1 kB / 465 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.263e-05/0.1059, allocations: 32 kB / 465 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.1062, allocations: 127.8 kB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000203/0.1064, allocations: 199.5 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002408/0.1067, allocations: 214.9 kB / 465.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005558/0.1072, allocations: 0.51 MB / 466.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.1073, allocations: 3.984 kB / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1073, allocations: 0 / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.1073, allocations: 0 / 466.1 MB, free: 14.79 MB / 350.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.001315/0.1086, allocations: 0.6991 MB / 466.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.1087, allocations: 15.88 kB / 466.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.361e-05/0.1088, allocations: 78.66 kB / 466.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006347/0.1094, allocations: 84.39 kB / 467 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005967/0.11, allocations: 387.3 kB / 467.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.11, allocations: 21.38 kB / 467.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.1102, allocations: 47.92 kB / 467.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006728/0.1109, allocations: 492.8 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1109, allocations: 3.938 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.1109, allocations: 12 kB / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001091/0.111, allocations: 28.98 kB / 467.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005289/0.1116, allocations: 355.6 kB / 468.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.1137, allocations: 1.722 MB / 470 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.114, allocations: 161 kB / 470.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.1142, allocations: 121.6 kB / 470.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.1142, allocations: 0 / 470.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.1142, allocations: 38.5 kB / 470.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.172e-06/0.1142, allocations: 0 / 470.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001446/0.1157, allocations: 0.8799 MB / 471.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.1157, allocations: 85.05 kB / 471.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.1161, allocations: 308.5 kB / 471.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.1161, allocations: 29.7 kB / 471.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.1163, allocations: 255.4 kB / 471.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.421e-05/0.1163, allocations: 71.22 kB / 471.9 MB, free: 8.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.859e-05/0.1164, allocations: 53.98 kB / 472 MB, free: 8.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1165, allocations: 346.8 kB / 472.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.1167, allocations: 96.22 kB / 472.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.1169, allocations: 197.4 kB / 472.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/0.1173, allocations: 330.4 kB / 472.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1173, allocations: 0 / 472.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008542/0.1182, allocations: 473.7 kB / 473.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1182, allocations: 8 kB / 473.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005982/0.1188, allocations: 323.3 kB / 473.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004657/0.1193, allocations: 136.9 kB / 473.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.1195, allocations: 59.91 kB / 473.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002817/0.1223, allocations: 2.443 MB / 476.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.1225, allocations: 12 kB / 476.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.1226, allocations: 16 kB / 476.4 MB, free: 3.844 MB / 350.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.0001752/0.1227, allocations: 189.7 kB / 476.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.179e-05/0.1228, allocations: 35.61 kB / 476.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004202/0.1232, allocations: 253.5 kB / 476.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.1233, allocations: 4 kB / 476.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1233, allocations: 3.984 kB / 476.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1233, allocations: 0 / 476.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.1244, allocations: 0.739 MB / 477.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1244, allocations: 0 / 477.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.1246, allocations: 39.97 kB / 477.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001038/0.1247, allocations: 36.83 kB / 477.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.1247, allocations: 7.938 kB / 477.7 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1248, allocations: 4.062 kB / 477.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1248, allocations: 0 / 477.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005155/0.1253, allocations: 453.5 kB / 478.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.848e-05/0.1254, allocations: 100.7 kB / 478.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.1254, allocations: 15.94 kB / 478.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1256, allocations: 11.97 kB / 478.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.1256, allocations: 11.98 kB / 478.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.1256, allocations: 8 kB / 478.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002006/0.1258, allocations: 219 kB / 478.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1258, allocations: 0 / 478.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004301/0.1263, allocations: 87.94 kB / 478.6 MB, free: 1.52 MB / 350.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.000767/0.127, allocations: 0.9801 MB / 479.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006697/0.1277, allocations: 422.2 kB / 480 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1277, allocations: 3.938 kB / 480 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.128, allocations: 182.8 kB / 480.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.1285, allocations: 65.12 kB / 480.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004502/0.133, allocations: 3.567 MB / 483.8 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.1334, allocations: 0.8419 MB / 484.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.1336, allocations: 70.91 kB / 484.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.1337, allocations: 123.4 kB / 484.8 MB, free: 11 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1337, allocations: 0 / 484.8 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.1611, allocations: 7.203 MB / 492 MB, free: 3.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.38, allocations: 16.45 kB / 492 MB, free: 3.891 MB / 366.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1)