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.001488/0.001488, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.00171/0.00171, allocations: 196.1 kB / 18 MB, free: 5.168 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.474/1.474, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 64.14 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3408, allocations: 58.06 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008142/0.349, allocations: 7.115 MB / 0.5106 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008429/0.3575, allocations: 5.093 MB / 0.5155 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.3587, allocations: 29 kB / 0.5156 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01299/0.3717, allocations: 5.705 MB / 0.5211 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001866/0.3736, allocations: 0.5208 MB / 0.5217 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001459/0.3751, allocations: 0.4963 MB / 0.5221 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003603/0.3787, allocations: 2.248 MB / 0.5243 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.38, allocations: 0.9269 MB / 0.5252 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.3811, allocations: 0.612 MB / 0.5258 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009894/0.3821, allocations: 0.7239 MB / 0.5265 GB, free: 11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.3823, allocations: 101 kB / 0.5266 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005707/0.3829, allocations: 249.1 kB / 0.5269 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004875/0.3834, allocations: 0.4898 MB / 0.5274 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006153/0.384, allocations: 0.5844 MB / 0.5279 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001822/0.3858, allocations: 1.549 MB / 0.5294 GB, free: 9.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3858, allocations: 4 kB / 0.5294 GB, free: 9.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3858, allocations: 1.75 kB / 0.5294 GB, free: 9.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.044e-05/0.3859, allocations: 0 / 0.5294 GB, free: 9.188 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.003337/0.3892, allocations: 1.489 MB / 0.5309 GB, free: 8.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3893, allocations: 12.89 kB / 0.5309 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000175/0.3895, allocations: 135.7 kB / 0.531 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006801/0.3901, allocations: 155.5 kB / 0.5312 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.3919, allocations: 0.9213 MB / 0.5321 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.748e-05/0.392, allocations: 62.64 kB / 0.5322 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.3922, allocations: 84.27 kB / 0.5322 GB, free: 7.113 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001961/0.3942, allocations: 1.233 MB / 0.5334 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.565e-05/0.3942, allocations: 5.297 kB / 0.5334 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-05/0.3943, allocations: 40.48 kB / 0.5335 GB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002397/0.3946, allocations: 92.53 kB / 0.5336 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.3961, allocations: 1.003 MB / 0.5345 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006996/0.4031, allocations: 4.903 MB / 0.5393 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009863/0.4042, allocations: 0.6448 MB / 0.54 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005414/0.4047, allocations: 360.5 kB / 0.5403 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.117e-05/0.4048, allocations: 11.53 kB / 0.5403 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006874/0.4055, allocations: 448.1 kB / 0.5407 GB, free: 0.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.385e-06/0.4055, allocations: 0 / 0.5407 GB, free: 0.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.005038/0.4105, allocations: 2.745 MB / 0.5434 GB, free: 15.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.4106, allocations: 109 kB / 0.5435 GB, free: 14.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009476/0.4116, allocations: 0.7533 MB / 0.5443 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.398e-05/0.4116, allocations: 37.7 kB / 0.5443 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003544/0.412, allocations: 0.5039 MB / 0.5448 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.4122, allocations: 253.8 kB / 0.545 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/0.4125, allocations: 186.5 kB / 0.5452 GB, free: 13.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4127, allocations: 398.7 kB / 0.5456 GB, free: 13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000571/0.4133, allocations: 381.8 kB / 0.546 GB, free: 12.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007169/0.414, allocations: 0.6539 MB / 0.5466 GB, free: 11.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.4153, allocations: 1.049 MB / 0.5476 GB, free: 10.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.4153, allocations: 0 / 0.5476 GB, free: 10.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002992/0.4183, allocations: 1.639 MB / 0.5492 GB, free: 9.004 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.4183, allocations: 16.42 kB / 0.5492 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.4183, allocations: 12 kB / 0.5492 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/0.4199, allocations: 485.3 kB / 0.5497 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006295/0.4205, allocations: 171.7 kB / 0.5499 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009495/0.43, allocations: 7.084 MB / 0.5568 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000881/0.431, allocations: 52.03 kB / 0.5568 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.241e-05/0.431, allocations: 43.98 kB / 0.5569 GB, free: 0.8711 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.0005975/0.4317, allocations: 349.4 kB / 0.5572 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.4318, allocations: 91.52 kB / 0.5573 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.4336, allocations: 1.118 MB / 0.5584 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.4336, allocations: 12 kB / 0.5584 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4336, allocations: 0 / 0.5584 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.4336, allocations: 3.984 kB / 0.5584 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003406/0.4371, allocations: 2.119 MB / 0.5605 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.4371, allocations: 0 / 0.5605 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/0.4378, allocations: 123.8 kB / 0.5606 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005106/0.4383, allocations: 162.5 kB / 0.5608 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-05/0.4384, allocations: 23.98 kB / 0.5608 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.4424, allocations: 4.805 MB / 0.5655 GB, free: 7.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.4424, allocations: 7.969 kB / 0.5655 GB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.4447, allocations: 1.535 MB / 0.567 GB, free: 5.848 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004386/0.4451, allocations: 216.7 kB / 0.5672 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.4452, allocations: 16 kB / 0.5672 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004474/0.4457, allocations: 31.97 kB / 0.5672 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.4459, allocations: 60.41 kB / 0.5673 GB, free: 5.512 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-05/0.4459, allocations: 20 kB / 0.5673 GB, free: 5.492 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006513/0.4466, allocations: 0.5185 MB / 0.5678 GB, free: 4.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4466, allocations: 0 / 0.5678 GB, free: 4.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001047/0.4476, allocations: 263.9 kB / 0.5681 GB, free: 4.723 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.003205/0.4508, allocations: 2.383 MB / 0.5704 GB, free: 2.402 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002416/0.4533, allocations: 1.342 MB / 0.5717 GB, free: 1.031 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4533, allocations: 0 / 0.5717 GB, free: 1.031 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.4545, allocations: 0.7892 MB / 0.5725 GB, free: 208 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.4557, allocations: 219.4 kB / 0.5727 GB, free: 15.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.4703, allocations: 9.866 MB / 0.5823 GB, free: 5.691 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007619/0.4711, allocations: 1.147 MB / 0.5834 GB, free: 4.516 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007216/0.4718, allocations: 231.3 kB / 0.5837 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004983/0.4723, allocations: 359.2 kB / 0.584 GB, free: 3.934 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4723, allocations: 0 / 0.584 GB, free: 3.934 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07986/0.5522, allocations: 23.83 MB / 0.6073 GB, free: 12.26 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.89/16.45, allocations: 11.36 kB / 0.6073 GB, free: 12.25 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)