Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.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.PVsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource",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.001155/0.001155, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.001096/0.001097, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.309/1.309, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1762/0.1762, allocations: 38.03 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 69.12 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/0.08949, allocations: 58.06 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.00584/0.09536, allocations: 4.584 MB / 461.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.09737, allocations: 1.313 MB / 462.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002171/0.0976, allocations: 15.94 kB / 462.9 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.09871, allocations: 405.8 kB / 463.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005861/0.09931, allocations: 254.8 kB / 463.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004379/0.09976, allocations: 163.7 kB / 463.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006019/0.1004, allocations: 0.5646 MB / 464.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004366/0.1008, allocations: 285.2 kB / 464.5 MB, free: 408 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003892/0.1012, allocations: 259 kB / 464.8 MB, free: 148 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004716/0.1017, allocations: 271 kB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-05/0.1018, allocations: 32 kB / 465.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002591/0.102, allocations: 135.7 kB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.1022, allocations: 183.5 kB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002195/0.1024, allocations: 218.9 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.103, allocations: 0.5101 MB / 466.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.103, allocations: 0 / 466.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.103, allocations: 0 / 466.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.103, allocations: 0 / 466.1 MB, free: 14.81 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.001133/0.1041, allocations: 0.6952 MB / 466.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1042, allocations: 15.89 kB / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.409e-05/0.1043, allocations: 82.69 kB / 466.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005911/0.1049, allocations: 84.33 kB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/0.1055, allocations: 387.2 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.1055, allocations: 25.38 kB / 467.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.1056, allocations: 51.91 kB / 467.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007486/0.1064, allocations: 472.8 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.1064, allocations: 4 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.717e-05/0.1065, allocations: 12 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/0.1066, allocations: 28.98 kB / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005523/0.1072, allocations: 339.7 kB / 468.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.1093, allocations: 1.714 MB / 470 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.1096, allocations: 145.2 kB / 470.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.1098, allocations: 121.5 kB / 470.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.1098, allocations: 4 kB / 470.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.1099, allocations: 34.56 kB / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.1099, allocations: 0 / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001449/0.1113, allocations: 0.8528 MB / 471.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.1114, allocations: 81.11 kB / 471.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/0.1117, allocations: 308.5 kB / 471.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.1117, allocations: 25.7 kB / 471.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.1119, allocations: 251.4 kB / 471.8 MB, free: 8.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.1119, allocations: 59.11 kB / 471.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-05/0.112, allocations: 61.97 kB / 471.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1121, allocations: 342.8 kB / 472.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1123, allocations: 100.2 kB / 472.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002023/0.1125, allocations: 185.3 kB / 472.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003847/0.1129, allocations: 318.7 kB / 472.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1129, allocations: 0 / 472.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000826/0.1137, allocations: 457.4 kB / 473.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1138, allocations: 10.72 kB / 473.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005595/0.1143, allocations: 295.2 kB / 473.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000449/0.1148, allocations: 132.7 kB / 473.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.115, allocations: 51.92 kB / 473.8 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.1178, allocations: 2.388 MB / 476.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.1179, allocations: 15.98 kB / 476.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.118, allocations: 12 kB / 476.2 MB, free: 4.086 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.0002222/0.1182, allocations: 189.7 kB / 476.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.63e-05/0.1183, allocations: 23.72 kB / 476.4 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004479/0.1187, allocations: 253.4 kB / 476.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1187, allocations: 3.938 kB / 476.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1187, allocations: 4 kB / 476.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.1188, allocations: 0 / 476.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.1199, allocations: 0.7156 MB / 477.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.12, allocations: 0 / 477.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.1202, allocations: 43.97 kB / 477.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001065/0.1203, allocations: 32.78 kB / 477.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.1203, allocations: 3.938 kB / 477.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001465/0.1218, allocations: 1.6 MB / 479 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1218, allocations: 7.969 kB / 479 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005335/0.1224, allocations: 417 kB / 479.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.416e-05/0.1225, allocations: 108.7 kB / 479.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/0.1225, allocations: 7.938 kB / 479.6 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.1227, allocations: 12.03 kB / 479.6 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.433e-05/0.1227, allocations: 11.92 kB / 479.6 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.1227, allocations: 12 kB / 479.6 MB, free: 400 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001997/0.1229, allocations: 215.1 kB / 479.8 MB, free: 188 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.123, allocations: 0 / 479.8 MB, free: 188 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004461/0.1234, allocations: 91.98 kB / 479.9 MB, free: 96 kB / 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): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008131/0.1242, allocations: 0.9598 MB / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006929/0.1249, allocations: 411 kB / 481.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1249, allocations: 0 / 481.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.1253, allocations: 231.4 kB / 481.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004923/0.1258, allocations: 66.78 kB / 481.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004621/0.1304, allocations: 3.505 MB / 485 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/0.131, allocations: 0.8457 MB / 485.9 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001955/0.1312, allocations: 58.92 kB / 485.9 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.1314, allocations: 123.4 kB / 486.1 MB, free: 9.633 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1314, allocations: 0 / 486.1 MB, free: 9.633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02933/0.1607, allocations: 7.334 MB / 493.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/10.87, allocations: 12.58 kB / 493.4 MB, free: 2.391 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource_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_PVsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1)