Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001145/0.001145, allocations: 109.6 kB / 16.92 MB, free: 6.332 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.001195/0.001195, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.352/1.352, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1794/0.1794, allocations: 38.04 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 56.62 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09963/0.1011, allocations: 58.07 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006257/0.1074, allocations: 4.913 MB / 461.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003357/0.1108, allocations: 2.481 MB / 464.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002862/0.1111, allocations: 15.94 kB / 464.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001171/0.1123, allocations: 441.4 kB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.1134, allocations: 0.5096 MB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006283/0.114, allocations: 275.2 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007876/0.1148, allocations: 0.736 MB / 466.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005099/0.1153, allocations: 337.5 kB / 466.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004488/0.1158, allocations: 314.8 kB / 467 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005214/0.1163, allocations: 330.8 kB / 467.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.192e-05/0.1164, allocations: 40 kB / 467.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009751/0.1174, allocations: 0.6313 MB / 468 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001993/0.1176, allocations: 199.4 kB / 468.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.1179, allocations: 238.8 kB / 468.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009959/0.1189, allocations: 0.7557 MB / 469.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1189, allocations: 0 / 469.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1189, allocations: 4 kB / 469.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.1189, allocations: 0 / 469.1 MB, free: 11.76 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001146/0.1201, allocations: 0.7722 MB / 469.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1201, allocations: 15.83 kB / 469.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.949e-05/0.1202, allocations: 86.69 kB / 470 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.1219, allocations: 200.1 kB / 470.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.1224, allocations: 358.3 kB / 470.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.1224, allocations: 29.38 kB / 470.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.471e-05/0.1225, allocations: 52.36 kB / 470.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009664/0.1235, allocations: 0.6264 MB / 471.3 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.1235, allocations: 3.906 kB / 471.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.195e-05/0.1236, allocations: 16 kB / 471.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.729e-05/0.1236, allocations: 36.98 kB / 471.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.1247, allocations: 0.6089 MB / 471.9 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003333/0.128, allocations: 2.257 MB / 474.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006295/0.1286, allocations: 489 kB / 474.7 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003195/0.129, allocations: 237.7 kB / 474.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.129, allocations: 4 kB / 474.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.1291, allocations: 34.56 kB / 474.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.1291, allocations: 0 / 474.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003808/0.1329, allocations: 1.716 MB / 476.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.133, allocations: 85.09 kB / 476.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002874/0.1333, allocations: 275 kB / 477 MB, free: 3.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.1333, allocations: 33.7 kB / 477 MB, free: 3.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.1334, allocations: 232.2 kB / 477.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.1336, allocations: 153.8 kB / 477.4 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.1337, allocations: 86.25 kB / 477.5 MB, free: 2.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.1338, allocations: 350.7 kB / 477.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.1341, allocations: 177 kB / 478 MB, free: 2.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.1345, allocations: 294.4 kB / 478.3 MB, free: 2.117 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006336/0.1351, allocations: 0.5005 MB / 478.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1351, allocations: 0 / 478.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001204/0.1363, allocations: 0.6848 MB / 479.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.1363, allocations: 9.969 kB / 479.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1364, allocations: 4 kB / 479.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005857/0.137, allocations: 177 kB / 479.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.1373, allocations: 99.81 kB / 479.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.1407, allocations: 2.79 MB / 482.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.1409, allocations: 23.92 kB / 482.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.141, allocations: 20.11 kB / 482.6 MB, free: 13.62 MB / 366.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 (47): * Single equations (assignments): 46 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002267/0.1412, allocations: 201.6 kB / 482.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.463e-05/0.1413, allocations: 35.56 kB / 482.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001143/0.1425, allocations: 0.6298 MB / 483.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1425, allocations: 8 kB / 483.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1425, allocations: 3.938 kB / 483.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1425, allocations: 0 / 483.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/0.1447, allocations: 1.359 MB / 484.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1447, allocations: 0 / 484.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003584/0.1451, allocations: 75.89 kB / 484.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004912/0.1456, allocations: 148.7 kB / 485 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.295e-05/0.1457, allocations: 12 kB / 485.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00286/0.1485, allocations: 2.556 MB / 487.6 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1485, allocations: 8 kB / 487.6 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.1499, allocations: 0.9608 MB / 488.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.67e-05/0.15, allocations: 108.7 kB / 488.7 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.314e-05/0.1501, allocations: 11.94 kB / 488.7 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1503, allocations: 15.98 kB / 488.7 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.1504, allocations: 31.95 kB / 488.8 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/0.1504, allocations: 12.19 kB / 488.8 MB, free: 7.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.1506, allocations: 197.9 kB / 489 MB, free: 6.973 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1506, allocations: 3.938 kB / 489 MB, free: 6.969 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.1512, allocations: 144 kB / 489.1 MB, free: 6.828 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001643/0.1529, allocations: 1.505 MB / 490.6 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.1542, allocations: 0.7358 MB / 491.3 MB, free: 4.535 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.1543, allocations: 0 / 491.3 MB, free: 4.535 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006656/0.1549, allocations: 426.2 kB / 491.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.1554, allocations: 71.77 kB / 491.8 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006236/0.1617, allocations: 4.474 MB / 496.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.1621, allocations: 0.8747 MB / 497.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.1624, allocations: 71.22 kB / 497.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.1626, allocations: 151.4 kB / 497.4 MB, free: 14.26 MB / 382.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1626, allocations: 0 / 497.4 MB, free: 14.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03237/0.195, allocations: 9.672 MB / 0.4952 GB, free: 4.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.05, allocations: 13.62 kB / 0.4952 GB, free: 4.672 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2_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_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)