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.001309/0.001309, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001371/0.001371, allocations: 193.4 kB / 18 MB, free: 5.172 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.439/1.439, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1848/0.1848, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.89 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3239, allocations: 58.07 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005264/0.3292, allocations: 4.918 MB / 0.5084 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0031/0.3324, allocations: 2.48 MB / 0.5108 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002951/0.3327, allocations: 14.5 kB / 0.5109 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.3338, allocations: 434.6 kB / 0.5113 GB, free: 2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.3352, allocations: 0.5049 MB / 0.5118 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008447/0.3361, allocations: 281.9 kB / 0.512 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000961/0.337, allocations: 0.7458 MB / 0.5128 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005128/0.3376, allocations: 335.7 kB / 0.5131 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005071/0.3381, allocations: 313.5 kB / 0.5134 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004717/0.3386, allocations: 325 kB / 0.5137 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.426e-05/0.3386, allocations: 36.75 kB / 0.5137 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.3398, allocations: 0.6375 MB / 0.5143 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002083/0.34, allocations: 198.1 kB / 0.5145 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000234/0.3403, allocations: 244.6 kB / 0.5148 GB, free: 376 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.3415, allocations: 0.7681 MB / 0.5155 GB, free: 88 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.3416, allocations: 1.125 kB / 0.5155 GB, free: 88 kB / 382.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.3416, allocations: 3.938 kB / 0.5155 GB, free: 84 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.3416, allocations: 0 / 0.5155 GB, free: 84 kB / 382.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.001352/0.3429, allocations: 0.7895 MB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.343, allocations: 10.03 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.3431, allocations: 82.05 kB / 0.5164 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001733/0.3448, allocations: 206.5 kB / 0.5166 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000697/0.3456, allocations: 374.1 kB / 0.5169 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.3456, allocations: 30.88 kB / 0.517 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.489e-05/0.3457, allocations: 40.47 kB / 0.517 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.347, allocations: 0.6298 MB / 0.5176 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/0.3471, allocations: 2.344 kB / 0.5176 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.358e-05/0.3471, allocations: 16.16 kB / 0.5176 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.327e-05/0.3472, allocations: 40.19 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.3483, allocations: 0.6113 MB / 0.5183 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003752/0.3521, allocations: 2.251 MB / 0.5205 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007622/0.3528, allocations: 494.4 kB / 0.5209 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004009/0.3533, allocations: 235.6 kB / 0.5212 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.3533, allocations: 5.422 kB / 0.5212 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.3534, allocations: 41.28 kB / 0.5212 GB, free: 12.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.635e-06/0.3534, allocations: 0 / 0.5212 GB, free: 12.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003835/0.3572, allocations: 1.713 MB / 0.5229 GB, free: 11.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.3573, allocations: 87.03 kB / 0.523 GB, free: 11.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.3577, allocations: 283.9 kB / 0.5232 GB, free: 11.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.167e-05/0.3577, allocations: 32.27 kB / 0.5233 GB, free: 11.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.358, allocations: 232.9 kB / 0.5235 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.3581, allocations: 157.9 kB / 0.5236 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.3583, allocations: 86.09 kB / 0.5237 GB, free: 11.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.3585, allocations: 350.9 kB / 0.5241 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.3588, allocations: 174.6 kB / 0.5242 GB, free: 10.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003983/0.3592, allocations: 292.9 kB / 0.5245 GB, free: 10.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007576/0.36, allocations: 0.5042 MB / 0.525 GB, free: 10.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.36, allocations: 1.219 kB / 0.525 GB, free: 10.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001328/0.3614, allocations: 0.6837 MB / 0.5257 GB, free: 9.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.3614, allocations: 6.906 kB / 0.5257 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.3614, allocations: 3.328 kB / 0.5257 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006474/0.3621, allocations: 185.6 kB / 0.5259 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.3625, allocations: 97.73 kB / 0.5259 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005941/0.3684, allocations: 2.787 MB / 0.5287 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005569/0.369, allocations: 20.27 kB / 0.5287 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.021e-05/0.3691, allocations: 25.52 kB / 0.5287 GB, free: 7.871 MB / 398.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.0004654/0.3696, allocations: 195.5 kB / 0.5289 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.3698, allocations: 46.69 kB / 0.5289 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/0.3715, allocations: 0.6256 MB / 0.5296 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.3715, allocations: 6 kB / 0.5296 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.3715, allocations: 3.938 kB / 0.5296 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.3716, allocations: 3.641 kB / 0.5296 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003018/0.3746, allocations: 1.352 MB / 0.5309 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3746, allocations: 5.75 kB / 0.5309 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/0.375, allocations: 76.73 kB / 0.531 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004801/0.3755, allocations: 141.7 kB / 0.5311 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.481e-05/0.3755, allocations: 9.328 kB / 0.5311 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004736/0.3803, allocations: 2.57 MB / 0.5336 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/0.3803, allocations: 9.125 kB / 0.5336 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.3827, allocations: 0.955 MB / 0.5346 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.383, allocations: 115.4 kB / 0.5347 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.647e-05/0.3831, allocations: 19.53 kB / 0.5347 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.3834, allocations: 13.59 kB / 0.5347 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3836, allocations: 35.08 kB / 0.5347 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.028e-05/0.3836, allocations: 14.27 kB / 0.5348 GB, free: 3.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003415/0.384, allocations: 195.5 kB / 0.5349 GB, free: 3.766 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.384, allocations: 0 / 0.5349 GB, free: 3.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00107/0.3851, allocations: 138.5 kB / 0.5351 GB, free: 3.75 MB / 398.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.002897/0.388, allocations: 1.505 MB / 0.5365 GB, free: 2.633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.3899, allocations: 0.6671 MB / 0.5372 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.39, allocations: 5.438 kB / 0.5372 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.3912, allocations: 425.8 kB / 0.5376 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008509/0.392, allocations: 63.03 kB / 0.5377 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.4021, allocations: 4.481 MB / 0.542 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006433/0.4028, allocations: 0.8677 MB / 0.5429 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.4031, allocations: 72.47 kB / 0.543 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/0.4033, allocations: 149.4 kB / 0.5431 GB, free: 13.86 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4033, allocations: 0 / 0.5431 GB, free: 13.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06161/0.4649, allocations: 9.88 MB / 0.5527 GB, free: 5.293 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.76, allocations: 2.812 kB / 0.5527 GB, free: 5.293 MB / 414.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)