Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",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.001295/0.001295, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001337/0.001338, allocations: 189.4 kB / 18 MB, free: 5.09 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.398/1.398, 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-master/package.mo): time 0.1796/0.1796, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3195, allocations: 58.05 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.00729/0.3268, allocations: 7.116 MB / 0.5106 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007251/0.3341, allocations: 5.086 MB / 0.5155 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000701/0.3349, allocations: 28.12 kB / 0.5156 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01168/0.3466, allocations: 5.719 MB / 0.5212 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001753/0.3484, allocations: 0.5121 MB / 0.5217 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.3498, allocations: 495.3 kB / 0.5221 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003436/0.3533, allocations: 2.251 MB / 0.5243 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001257/0.3545, allocations: 0.929 MB / 0.5252 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.3556, allocations: 0.6006 MB / 0.5258 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009978/0.3566, allocations: 0.7247 MB / 0.5265 GB, free: 11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001664/0.3568, allocations: 99.66 kB / 0.5266 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000703/0.3575, allocations: 253.6 kB / 0.5269 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005335/0.358, allocations: 0.4936 MB / 0.5273 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00061/0.3586, allocations: 0.5804 MB / 0.5279 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.3604, allocations: 1.549 MB / 0.5294 GB, free: 9.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3605, allocations: 0 / 0.5294 GB, free: 9.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3605, allocations: 3.312 kB / 0.5294 GB, free: 9.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.3605, allocations: 0 / 0.5294 GB, free: 9.18 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.003106/0.3636, allocations: 1.493 MB / 0.5309 GB, free: 8.055 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.3637, allocations: 13.8 kB / 0.5309 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/0.3638, allocations: 132 kB / 0.531 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006699/0.3645, allocations: 158.8 kB / 0.5312 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.3662, allocations: 0.917 MB / 0.5321 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.335e-05/0.3663, allocations: 66.83 kB / 0.5321 GB, free: 7.129 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.3665, allocations: 80.19 kB / 0.5322 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001957/0.3684, allocations: 1.237 MB / 0.5334 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.541e-05/0.3685, allocations: 14.39 kB / 0.5334 GB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.884e-05/0.3686, allocations: 28.78 kB / 0.5335 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002288/0.3688, allocations: 94.91 kB / 0.5335 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.3705, allocations: 1 MB / 0.5345 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006785/0.3773, allocations: 4.903 MB / 0.5393 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/0.3783, allocations: 0.6479 MB / 0.5399 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005885/0.3789, allocations: 360.8 kB / 0.5403 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.148e-05/0.379, allocations: 15.2 kB / 0.5403 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006899/0.3797, allocations: 448.1 kB / 0.5407 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.765e-06/0.3797, allocations: 3.938 kB / 0.5407 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.005002/0.3847, allocations: 2.741 MB / 0.5434 GB, free: 15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/0.3848, allocations: 114.1 kB / 0.5435 GB, free: 14.87 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.3858, allocations: 0.7531 MB / 0.5443 GB, free: 14.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.959e-05/0.3859, allocations: 38.02 kB / 0.5443 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004253/0.3863, allocations: 0.5059 MB / 0.5448 GB, free: 13.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/0.3866, allocations: 249.9 kB / 0.545 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.3869, allocations: 186.5 kB / 0.5452 GB, free: 13.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002279/0.3871, allocations: 398.7 kB / 0.5456 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006326/0.3878, allocations: 373.8 kB / 0.5459 GB, free: 12.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008588/0.3886, allocations: 0.6539 MB / 0.5466 GB, free: 11.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.3902, allocations: 1.053 MB / 0.5476 GB, free: 10.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.3902, allocations: 4 kB / 0.5476 GB, free: 10.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00326/0.3934, allocations: 1.636 MB / 0.5492 GB, free: 9.086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.3935, allocations: 8 kB / 0.5492 GB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.3935, allocations: 11.98 kB / 0.5492 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/0.3951, allocations: 489.4 kB / 0.5497 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006189/0.3957, allocations: 167.7 kB / 0.5499 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/0.4061, allocations: 7.091 MB / 0.5568 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007928/0.407, allocations: 48.03 kB / 0.5568 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.633e-05/0.4071, allocations: 40 kB / 0.5569 GB, free: 0.9609 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005761/0.4077, allocations: 353.4 kB / 0.5572 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.4078, allocations: 91.39 kB / 0.5573 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.4098, allocations: 1.114 MB / 0.5584 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.4098, allocations: 11.94 kB / 0.5584 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4099, allocations: 4 kB / 0.5584 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.4099, allocations: 7.984 kB / 0.5584 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.4136, allocations: 2.103 MB / 0.5605 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.4136, allocations: 0 / 0.5605 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007595/0.4144, allocations: 131.9 kB / 0.5606 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005399/0.4149, allocations: 154.4 kB / 0.5607 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-05/0.415, allocations: 23.98 kB / 0.5607 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004761/0.4197, allocations: 4.82 MB / 0.5655 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4198, allocations: 0 / 0.5655 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.4222, allocations: 1.539 MB / 0.567 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.4226, allocations: 220.5 kB / 0.5672 GB, free: 5.699 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.4227, allocations: 16 kB / 0.5672 GB, free: 5.684 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/0.4232, allocations: 31.97 kB / 0.5672 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.4233, allocations: 56.42 kB / 0.5673 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.387e-05/0.4234, allocations: 23.94 kB / 0.5673 GB, free: 5.574 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007409/0.4241, allocations: 0.5107 MB / 0.5678 GB, free: 5.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4242, allocations: 0 / 0.5678 GB, free: 5.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001017/0.4252, allocations: 263.9 kB / 0.568 GB, free: 4.812 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (2,1,100.0%), (2,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.004004/0.4292, allocations: 2.39 MB / 0.5704 GB, free: 2.488 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002542/0.4318, allocations: 1.341 MB / 0.5717 GB, free: 1.117 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4318, allocations: 0 / 0.5717 GB, free: 1.117 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.4331, allocations: 0.7897 MB / 0.5725 GB, free: 296 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.4342, allocations: 214.8 kB / 0.5727 GB, free: 80 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/0.4503, allocations: 9.859 MB / 0.5823 GB, free: 5.781 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.4514, allocations: 1.143 MB / 0.5834 GB, free: 4.609 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007168/0.4522, allocations: 231.3 kB / 0.5836 GB, free: 4.379 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005729/0.4528, allocations: 359.3 kB / 0.584 GB, free: 4.027 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4528, allocations: 0 / 0.584 GB, free: 4.027 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09313/0.5459, allocations: 23.84 MB / 0.6072 GB, free: 12.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.89/17.44, allocations: 11.92 kB / 0.6073 GB, free: 12.35 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)