Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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: 104 kB / 16.92 MB, free: 5.789 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.001183/0.001183, allocations: 191.3 kB / 17.85 MB, free: 5.191 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.327/1.327, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2843/0.2843, allocations: 38.03 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 62.88 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09988, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007562/0.1075, allocations: 6.086 MB / 463 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003525/0.111, allocations: 1.951 MB / 465 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005467/0.1116, allocations: 23.88 kB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002062/0.1137, allocations: 0.6983 MB / 465.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001145/0.1148, allocations: 378.1 kB / 466.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.116, allocations: 399.1 kB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.1175, allocations: 0.9355 MB / 467.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008259/0.1183, allocations: 0.5 MB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007857/0.1191, allocations: 422.3 kB / 468.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008785/0.12, allocations: 0.5296 MB / 468.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.1202, allocations: 56 kB / 468.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006516/0.1209, allocations: 239.5 kB / 469.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004932/0.1214, allocations: 415 kB / 469.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007346/0.1221, allocations: 430 kB / 470 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001229/0.1234, allocations: 0.9891 MB / 471 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1234, allocations: 0 / 471 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1234, allocations: 4 kB / 471 MB, free: 9.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.1234, allocations: 0 / 471 MB, free: 9.914 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002241/0.1257, allocations: 1.072 MB / 472 MB, free: 8.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.1257, allocations: 15.89 kB / 472 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000178/0.1259, allocations: 143.2 kB / 472.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007469/0.1267, allocations: 135.8 kB / 472.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008732/0.1275, allocations: 0.5128 MB / 472.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.32e-05/0.1276, allocations: 62.34 kB / 472.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.1277, allocations: 79.94 kB / 473 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.1295, allocations: 1.13 MB / 474.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.1295, allocations: 11.84 kB / 474.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.187e-05/0.1296, allocations: 32 kB / 474.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.638e-05/0.1297, allocations: 49.98 kB / 474.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.131, allocations: 0.8662 MB / 475.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005671/0.1367, allocations: 5.059 MB / 480.1 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006948/0.1374, allocations: 419.8 kB / 480.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002995/0.1377, allocations: 217.6 kB / 480.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.357e-05/0.1378, allocations: 15.98 kB / 480.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.1378, allocations: 34.56 kB / 480.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.335e-06/0.1378, allocations: 0 / 480.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00189/0.1397, allocations: 1.067 MB / 481.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.1398, allocations: 93.12 kB / 481.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006017/0.1404, allocations: 0.4939 MB / 482.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.1405, allocations: 33.7 kB / 482.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003073/0.1408, allocations: 453.6 kB / 482.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.1409, allocations: 161.8 kB / 483.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.1411, allocations: 150.5 kB / 483.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1413, allocations: 366.7 kB / 483.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003595/0.1416, allocations: 245.8 kB / 483.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/0.1422, allocations: 0.6132 MB / 484.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.1434, allocations: 0.9418 MB / 485.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.1434, allocations: 4 kB / 485.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001369/0.1448, allocations: 0.8919 MB / 486.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.1448, allocations: 10.34 kB / 486.3 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/0.1448, allocations: 16.09 kB / 486.3 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.1449, allocations: 20 kB / 486.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006962/0.1456, allocations: 219.6 kB / 486.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.67e-05/0.1456, allocations: 31.86 kB / 486.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000426/0.146, allocations: 51.86 kB / 486.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.944e-05/0.1461, allocations: 44 kB / 486.7 MB, free: 9.301 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003641/0.1465, allocations: 309.3 kB / 487 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.3e-05/0.1466, allocations: 55.34 kB / 487 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009051/0.1475, allocations: 0.5563 MB / 487.6 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.1475, allocations: 8 kB / 487.6 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.1475, allocations: 0 / 487.6 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.1475, allocations: 0 / 487.6 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.1496, allocations: 1.334 MB / 488.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1496, allocations: 8.188 kB / 488.9 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.15, allocations: 107.9 kB / 489 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.1501, allocations: 15.88 kB / 489 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.1501, allocations: 12 kB / 489.1 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.1501, allocations: 4 kB / 489.1 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.1501, allocations: 7.938 kB / 489.1 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.1509, allocations: 0.6327 MB / 489.7 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.1511, allocations: 136.3 kB / 489.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.1512, allocations: 12 kB / 489.8 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.1515, allocations: 27.97 kB / 489.9 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.553e-05/0.1515, allocations: 31.91 kB / 489.9 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.314e-05/0.1516, allocations: 19.98 kB / 489.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00036/0.1519, allocations: 322.9 kB / 490.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1519, allocations: 0 / 490.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007296/0.1527, allocations: 164 kB / 490.4 MB, free: 5.402 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001167/0.1539, allocations: 1.193 MB / 491.6 MB, free: 4.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.1549, allocations: 0.7 MB / 492.3 MB, free: 3.461 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.1549, allocations: 0 / 492.3 MB, free: 3.461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.1553, allocations: 240.6 kB / 492.5 MB, free: 3.227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/0.1559, allocations: 120.2 kB / 492.6 MB, free: 3.117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006908/0.1628, allocations: 5.861 MB / 498.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006166/0.1635, allocations: 1.007 MB / 499.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005569/0.164, allocations: 225 kB / 499.7 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/0.1644, allocations: 255.3 kB / 500 MB, free: 11.24 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1644, allocations: 0 / 500 MB, free: 11.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03094/0.1954, allocations: 11.15 MB / 0.4991 GB, free: 172 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.514/7.709, allocations: 18.72 kB / 0.4992 GB, free: 160 kB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Units_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1)