Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",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.00109/0.00109, allocations: 113.4 kB / 17.05 MB, free: 6.082 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.001107/0.001108, allocations: 191 kB / 17.99 MB, free: 5.176 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.321/1.321, 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.1796/0.1796, allocations: 38.02 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3233, allocations: 58.06 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006293/0.3297, allocations: 5.723 MB / 0.5092 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005496/0.3352, allocations: 4.433 MB / 0.5135 GB, free: 476 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005845/0.3358, allocations: 20.69 kB / 0.5135 GB, free: 468 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.3476, allocations: 4.902 MB / 0.5183 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001664/0.3493, allocations: 445.3 kB / 0.5187 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.3505, allocations: 280 kB / 0.519 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00379/0.3543, allocations: 1.719 MB / 0.5207 GB, free: 14 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001398/0.3557, allocations: 0.7205 MB / 0.5214 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.3568, allocations: 486.7 kB / 0.5219 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.3581, allocations: 0.5029 MB / 0.5224 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003427/0.3584, allocations: 72.62 kB / 0.5224 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006214/0.3591, allocations: 144.1 kB / 0.5226 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006049/0.3597, allocations: 323.3 kB / 0.5229 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001036/0.3607, allocations: 406.4 kB / 0.5233 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002066/0.3628, allocations: 1.036 MB / 0.5243 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3628, allocations: 2.828 kB / 0.5243 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3628, allocations: 0 / 0.5243 GB, free: 12.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.728e-05/0.3629, allocations: 0 / 0.5243 GB, free: 12.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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.003061/0.366, allocations: 1.048 MB / 0.5253 GB, free: 11.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.366, allocations: 13.67 kB / 0.5253 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.3662, allocations: 103.4 kB / 0.5254 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005318/0.3667, allocations: 104.5 kB / 0.5255 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.3682, allocations: 0.625 MB / 0.5261 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.498e-05/0.3683, allocations: 80.88 kB / 0.5262 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.3684, allocations: 57.47 kB / 0.5262 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.3697, allocations: 0.8172 MB / 0.527 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.3697, allocations: 5.141 kB / 0.5271 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.207e-05/0.3698, allocations: 21.81 kB / 0.5271 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.37, allocations: 50.28 kB / 0.5271 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009541/0.3709, allocations: 0.5916 MB / 0.5277 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004128/0.3751, allocations: 2.925 MB / 0.5306 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/0.3759, allocations: 431.6 kB / 0.531 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003275/0.3762, allocations: 224.2 kB / 0.5312 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/0.3763, allocations: 4.031 kB / 0.5312 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004873/0.3768, allocations: 350.5 kB / 0.5315 GB, free: 7.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.3768, allocations: 0 / 0.5315 GB, free: 7.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003323/0.3801, allocations: 2.049 MB / 0.5335 GB, free: 5.824 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.3802, allocations: 138.8 kB / 0.5337 GB, free: 5.664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005383/0.3807, allocations: 455.2 kB / 0.5341 GB, free: 5.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.3808, allocations: 37.08 kB / 0.5341 GB, free: 5.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002674/0.3811, allocations: 338.5 kB / 0.5344 GB, free: 5.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.3812, allocations: 167.4 kB / 0.5346 GB, free: 4.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.3814, allocations: 112.9 kB / 0.5347 GB, free: 4.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3816, allocations: 364.6 kB / 0.5351 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003748/0.382, allocations: 231.4 kB / 0.5353 GB, free: 4.367 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004885/0.3825, allocations: 398.1 kB / 0.5357 GB, free: 4.043 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002837/0.3853, allocations: 1.325 MB / 0.537 GB, free: 3.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3853, allocations: 5.312 kB / 0.537 GB, free: 3.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001841/0.3872, allocations: 0.9652 MB / 0.5379 GB, free: 2.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.3872, allocations: 32.86 kB / 0.5379 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3872, allocations: 4.906 kB / 0.5379 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000945/0.3882, allocations: 313.9 kB / 0.5382 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.3892, allocations: 180.5 kB / 0.5384 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006741/0.396, allocations: 5.3 MB / 0.5436 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/0.3965, allocations: 27.31 kB / 0.5436 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.182e-05/0.3966, allocations: 24.28 kB / 0.5436 GB, free: 13.93 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0005332/0.3971, allocations: 299.8 kB / 0.5439 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.3973, allocations: 52.95 kB / 0.544 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.3986, allocations: 0.8146 MB / 0.5448 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3986, allocations: 5.156 kB / 0.5448 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3986, allocations: 1.125 kB / 0.5448 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.3986, allocations: 1.188 kB / 0.5448 GB, free: 13.05 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.4013, allocations: 1.672 MB / 0.5464 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4013, allocations: 8.094 kB / 0.5464 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.4027, allocations: 183.8 kB / 0.5466 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002385/0.4029, allocations: 90.41 kB / 0.5467 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/0.403, allocations: 15.98 kB / 0.5467 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002975/0.406, allocations: 4.253 MB / 0.5508 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.406, allocations: 4.188 kB / 0.5508 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.4076, allocations: 1.132 MB / 0.552 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003434/0.408, allocations: 180.5 kB / 0.5521 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.4081, allocations: 16 kB / 0.5521 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.4084, allocations: 15.98 kB / 0.5522 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.4085, allocations: 31.94 kB / 0.5522 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.4085, allocations: 16 kB / 0.5522 GB, free: 5.203 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004192/0.4089, allocations: 323.1 kB / 0.5525 GB, free: 4.887 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4089, allocations: 0 / 0.5525 GB, free: 4.887 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000791/0.4097, allocations: 164 kB / 0.5527 GB, free: 4.727 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (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.001733/0.4115, allocations: 1.672 MB / 0.5543 GB, free: 2.957 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.4133, allocations: 0.9872 MB / 0.5553 GB, free: 1.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4134, allocations: 0 / 0.5553 GB, free: 1.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007944/0.4142, allocations: 0.6447 MB / 0.5559 GB, free: 1.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/0.4149, allocations: 124.4 kB / 0.556 GB, free: 1.117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009606/0.4245, allocations: 6.179 MB / 0.562 GB, free: 10.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006028/0.4252, allocations: 0.9799 MB / 0.563 GB, free: 9.684 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003582/0.4255, allocations: 120.7 kB / 0.5631 GB, free: 9.566 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003122/0.4259, allocations: 211.4 kB / 0.5633 GB, free: 9.359 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4259, allocations: 0 / 0.5633 GB, free: 9.359 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05077/0.4766, allocations: 14.19 MB / 0.5772 GB, free: 11.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.67, allocations: 8 kB / 0.5772 GB, free: 11.32 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)