Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",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.001603/0.001603, allocations: 112.4 kB / 17.07 MB, free: 5.969 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.0018/0.0018, allocations: 193.3 kB / 18.01 MB, free: 5.051 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.51/1.51, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1884/0.1884, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 55.91 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3314, allocations: 58.07 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006426/0.3379, allocations: 5.39 MB / 0.5089 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005477/0.3434, allocations: 4.157 MB / 0.5129 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004884/0.3439, allocations: 19.16 kB / 0.513 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01118/0.3551, allocations: 4.849 MB / 0.5177 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.3563, allocations: 340.2 kB / 0.518 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00073/0.357, allocations: 250.2 kB / 0.5183 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002299/0.3593, allocations: 1.558 MB / 0.5198 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006436/0.36, allocations: 386.5 kB / 0.5201 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000515/0.3605, allocations: 376.4 kB / 0.5205 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006628/0.3612, allocations: 445.4 kB / 0.5209 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.653e-05/0.3613, allocations: 46.75 kB / 0.521 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.3616, allocations: 120.5 kB / 0.5211 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003113/0.3619, allocations: 274.8 kB / 0.5214 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003638/0.3623, allocations: 323.9 kB / 0.5217 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.3634, allocations: 0.7457 MB / 0.5224 GB, free: 13.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3634, allocations: 1.953 kB / 0.5224 GB, free: 13.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3634, allocations: 4 kB / 0.5224 GB, free: 13.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.3634, allocations: 0 / 0.5224 GB, free: 13.48 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001817/0.3652, allocations: 0.9258 MB / 0.5233 GB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.3653, allocations: 8.906 kB / 0.5233 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.3654, allocations: 92.47 kB / 0.5234 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004703/0.3659, allocations: 97 kB / 0.5235 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.367, allocations: 0.5565 MB / 0.524 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.3671, allocations: 36.11 kB / 0.5241 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.265e-05/0.3671, allocations: 51.55 kB / 0.5241 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3682, allocations: 0.6524 MB / 0.5248 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.3682, allocations: 1.5 kB / 0.5248 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.104e-05/0.3683, allocations: 17.12 kB / 0.5248 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/0.3684, allocations: 47.59 kB / 0.5248 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008172/0.3693, allocations: 494.9 kB / 0.5253 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003744/0.373, allocations: 2.53 MB / 0.5278 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.3736, allocations: 321 kB / 0.5281 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.3739, allocations: 191.7 kB / 0.5282 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.3739, allocations: 3.625 kB / 0.5283 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.3739, allocations: 42.48 kB / 0.5283 GB, free: 9.664 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.853e-06/0.3739, allocations: 0 / 0.5283 GB, free: 9.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002756/0.3767, allocations: 1.65 MB / 0.5299 GB, free: 8.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.509e-05/0.3768, allocations: 115.8 kB / 0.53 GB, free: 8.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000504/0.3773, allocations: 426.5 kB / 0.5304 GB, free: 7.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/0.3774, allocations: 34.7 kB / 0.5305 GB, free: 7.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.3776, allocations: 305.9 kB / 0.5307 GB, free: 7.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.3778, allocations: 131 kB / 0.5309 GB, free: 7.566 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.3779, allocations: 89.19 kB / 0.531 GB, free: 7.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.3781, allocations: 359.7 kB / 0.5313 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.3784, allocations: 165.2 kB / 0.5315 GB, free: 7.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004044/0.3788, allocations: 303.2 kB / 0.5317 GB, free: 6.824 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.3796, allocations: 496.9 kB / 0.5322 GB, free: 6.469 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3796, allocations: 5.188 kB / 0.5322 GB, free: 6.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001485/0.3811, allocations: 0.798 MB / 0.533 GB, free: 5.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3811, allocations: 6.5 kB / 0.533 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3811, allocations: 4.594 kB / 0.533 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006704/0.3818, allocations: 214 kB / 0.5332 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.3821, allocations: 78.55 kB / 0.5333 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005219/0.3873, allocations: 4.214 MB / 0.5374 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003489/0.3877, allocations: 15.86 kB / 0.5374 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.137e-05/0.3878, allocations: 20.19 kB / 0.5374 GB, free: 2.156 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003689/0.3881, allocations: 230.6 kB / 0.5377 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.3883, allocations: 54.27 kB / 0.5377 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.3893, allocations: 0.6387 MB / 0.5383 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3893, allocations: 4.375 kB / 0.5383 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3893, allocations: 2.25 kB / 0.5383 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.299e-06/0.3893, allocations: 0 / 0.5383 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.3912, allocations: 1.193 MB / 0.5395 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3912, allocations: 1.125 kB / 0.5395 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.3916, allocations: 70.86 kB / 0.5396 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.3918, allocations: 56.92 kB / 0.5396 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.3919, allocations: 13.39 kB / 0.5396 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002533/0.3944, allocations: 2.843 MB / 0.5424 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3944, allocations: 1.469 kB / 0.5424 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.3961, allocations: 0.9529 MB / 0.5434 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003094/0.3964, allocations: 161.4 kB / 0.5435 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.523e-05/0.3965, allocations: 13.5 kB / 0.5435 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.3968, allocations: 12.11 kB / 0.5435 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.39e-05/0.3969, allocations: 32.27 kB / 0.5436 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/0.3969, allocations: 12.25 kB / 0.5436 GB, free: 12.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004322/0.3974, allocations: 292.5 kB / 0.5439 GB, free: 12.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3974, allocations: 0 / 0.5439 GB, free: 12.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007873/0.3982, allocations: 129.5 kB / 0.544 GB, free: 12.43 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/0.3998, allocations: 1.522 MB / 0.5455 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.4013, allocations: 0.7326 MB / 0.5462 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4013, allocations: 1.281 kB / 0.5462 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.4019, allocations: 416.3 kB / 0.5466 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008127/0.4028, allocations: 119.6 kB / 0.5467 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00833/0.4111, allocations: 5.574 MB / 0.5521 GB, free: 5.141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006879/0.4118, allocations: 0.9483 MB / 0.5531 GB, free: 4.168 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003598/0.4122, allocations: 104.4 kB / 0.5532 GB, free: 4.062 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.4125, allocations: 195.4 kB / 0.5533 GB, free: 3.871 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4125, allocations: 0 / 0.5533 GB, free: 3.871 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04787/0.4604, allocations: 12.17 MB / 0.5652 GB, free: 7.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.53, allocations: 6.594 kB / 0.5652 GB, free: 7.855 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines_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_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)