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.001702/0.001702, allocations: 112.6 kB / 17.07 MB, free: 5.977 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.001858/0.001857, allocations: 195 kB / 18 MB, free: 5.066 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1711/0.1711, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 67.91 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.369, allocations: 58.06 MB / 0.5036 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007037/0.3761, allocations: 5.387 MB / 0.5089 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005824/0.382, allocations: 4.159 MB / 0.5129 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005215/0.3825, allocations: 14.94 kB / 0.5129 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01196/0.3945, allocations: 4.86 MB / 0.5177 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001273/0.3958, allocations: 346.4 kB / 0.518 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008659/0.3967, allocations: 248.6 kB / 0.5183 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00249/0.3992, allocations: 1.562 MB / 0.5198 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006369/0.3998, allocations: 389.8 kB / 0.5202 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005679/0.4004, allocations: 383 kB / 0.5205 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006287/0.4011, allocations: 441.9 kB / 0.5209 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.905e-05/0.4011, allocations: 46.06 kB / 0.521 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002992/0.4014, allocations: 124.4 kB / 0.5211 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003091/0.4018, allocations: 271.8 kB / 0.5214 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003755/0.4022, allocations: 323.7 kB / 0.5217 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.4033, allocations: 0.7458 MB / 0.5224 GB, free: 13.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4033, allocations: 9.219 kB / 0.5224 GB, free: 13.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4033, allocations: 0 / 0.5224 GB, free: 13.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.4033, allocations: 0 / 0.5224 GB, free: 13.58 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.001841/0.4052, allocations: 0.9224 MB / 0.5233 GB, free: 12.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.4052, allocations: 17.7 kB / 0.5233 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.4054, allocations: 87.53 kB / 0.5234 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004726/0.4058, allocations: 96 kB / 0.5235 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.4069, allocations: 0.5573 MB / 0.5241 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.407, allocations: 36.03 kB / 0.5241 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.533e-05/0.4071, allocations: 52.39 kB / 0.5241 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.4081, allocations: 0.6513 MB / 0.5248 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.4081, allocations: 5.156 kB / 0.5248 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.484e-05/0.4082, allocations: 22.48 kB / 0.5248 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.4083, allocations: 47.42 kB / 0.5248 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008506/0.4092, allocations: 495.4 kB / 0.5253 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/0.4127, allocations: 2.526 MB / 0.5278 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004927/0.4132, allocations: 321.6 kB / 0.5281 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.4134, allocations: 178.5 kB / 0.5283 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.4135, allocations: 7.859 kB / 0.5283 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.4135, allocations: 46.23 kB / 0.5283 GB, free: 9.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.194e-06/0.4135, allocations: 0 / 0.5283 GB, free: 9.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002475/0.416, allocations: 1.647 MB / 0.5299 GB, free: 8.379 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.4161, allocations: 111.3 kB / 0.53 GB, free: 8.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.4165, allocations: 426.7 kB / 0.5304 GB, free: 7.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.4166, allocations: 34.77 kB / 0.5305 GB, free: 7.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.4168, allocations: 310.6 kB / 0.5308 GB, free: 7.676 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.812e-05/0.4169, allocations: 130.2 kB / 0.5309 GB, free: 7.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.417, allocations: 84.83 kB / 0.531 GB, free: 7.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.4172, allocations: 367.8 kB / 0.5313 GB, free: 7.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.4174, allocations: 169 kB / 0.5315 GB, free: 7.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003398/0.4178, allocations: 299.6 kB / 0.5318 GB, free: 6.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005992/0.4184, allocations: 493.8 kB / 0.5322 GB, free: 6.465 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4184, allocations: 1.312 kB / 0.5322 GB, free: 6.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001294/0.4197, allocations: 0.8004 MB / 0.533 GB, free: 5.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.4197, allocations: 6.875 kB / 0.533 GB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.4198, allocations: 8.281 kB / 0.533 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006276/0.4204, allocations: 206.5 kB / 0.5332 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.4207, allocations: 71.2 kB / 0.5333 GB, free: 5.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/0.4252, allocations: 4.235 MB / 0.5374 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003585/0.4256, allocations: 20.64 kB / 0.5375 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.4257, allocations: 15.53 kB / 0.5375 GB, free: 2.148 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.0003617/0.426, allocations: 226.5 kB / 0.5377 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.4262, allocations: 50.09 kB / 0.5377 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.4272, allocations: 0.6431 MB / 0.5384 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.4272, allocations: 4.375 kB / 0.5384 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4272, allocations: 2.719 kB / 0.5384 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4272, allocations: 0 / 0.5384 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.4291, allocations: 1.189 MB / 0.5395 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.4291, allocations: 1.375 kB / 0.5395 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.4296, allocations: 78.36 kB / 0.5396 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001659/0.4298, allocations: 48.95 kB / 0.5397 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.4298, allocations: 20.58 kB / 0.5397 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001942/0.4318, allocations: 2.837 MB / 0.5424 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4318, allocations: 5.156 kB / 0.5424 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.4329, allocations: 0.9529 MB / 0.5434 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002633/0.4332, allocations: 157.2 kB / 0.5435 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.986e-05/0.4333, allocations: 12.52 kB / 0.5435 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.4336, allocations: 8.938 kB / 0.5435 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.223e-05/0.4337, allocations: 32.59 kB / 0.5436 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.165e-05/0.4337, allocations: 12.22 kB / 0.5436 GB, free: 12.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003665/0.4341, allocations: 291.4 kB / 0.5439 GB, free: 12.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4341, allocations: 1.375 kB / 0.5439 GB, free: 12.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007157/0.4348, allocations: 136.9 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.001454/0.4363, allocations: 1.518 MB / 0.5455 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.4377, allocations: 0.7366 MB / 0.5462 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4378, allocations: 0 / 0.5462 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005646/0.4383, allocations: 425.8 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.0007986/0.4391, allocations: 110.9 kB / 0.5467 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008093/0.4473, allocations: 5.574 MB / 0.5522 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006439/0.4479, allocations: 0.9405 MB / 0.5531 GB, free: 4.125 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003507/0.4483, allocations: 100.4 kB / 0.5532 GB, free: 4.023 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.4486, allocations: 195.4 kB / 0.5534 GB, free: 3.832 MB / 414.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4486, allocations: 0 / 0.5534 GB, free: 3.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05105/0.4997, allocations: 12.17 MB / 0.5652 GB, free: 7.824 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.84, allocations: 11.98 kB / 0.5653 GB, free: 7.812 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)