Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.ASMav,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_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.001657/0.001657, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.002109/0.002109, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.222/2.222, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3257/0.3257, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002363/0.002363, allocations: 67.89 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4237, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01086/0.4346, allocations: 7.112 MB / 0.5106 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00981/0.4445, allocations: 5.088 MB / 0.5155 GB, free: 15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001373/0.4459, allocations: 31.97 kB / 0.5156 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0139/0.4598, allocations: 5.714 MB / 0.5211 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00225/0.4621, allocations: 0.5159 MB / 0.5216 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00198/0.4641, allocations: 0.4972 MB / 0.5221 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004688/0.4688, allocations: 2.248 MB / 0.5243 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002293/0.4711, allocations: 0.9295 MB / 0.5252 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001902/0.4731, allocations: 0.6193 MB / 0.5258 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.4748, allocations: 0.7195 MB / 0.5265 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004512/0.4753, allocations: 100.6 kB / 0.5266 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.4765, allocations: 245.8 kB / 0.5269 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009811/0.4775, allocations: 0.4993 MB / 0.5274 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.4793, allocations: 0.579 MB / 0.5279 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003135/0.4824, allocations: 1.554 MB / 0.5294 GB, free: 9.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.4824, allocations: 0 / 0.5294 GB, free: 9.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4825, allocations: 0 / 0.5294 GB, free: 9.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.507e-05/0.4825, allocations: 1.406 kB / 0.5294 GB, free: 9.211 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.004823/0.4874, allocations: 1.489 MB / 0.5309 GB, free: 8.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.4874, allocations: 12.98 kB / 0.5309 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004063/0.4879, allocations: 136.1 kB / 0.531 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000938/0.4888, allocations: 155.5 kB / 0.5312 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002723/0.4915, allocations: 0.9137 MB / 0.5321 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.85e-05/0.4917, allocations: 62.72 kB / 0.5321 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003834/0.4921, allocations: 91.25 kB / 0.5322 GB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003501/0.4956, allocations: 1.238 MB / 0.5334 GB, free: 6.332 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.202e-05/0.4957, allocations: 10.14 kB / 0.5334 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001707/0.4959, allocations: 28.47 kB / 0.5335 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003585/0.4962, allocations: 95.22 kB / 0.5336 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002488/0.4987, allocations: 0.996 MB / 0.5345 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.5091, allocations: 4.91 MB / 0.5393 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.5106, allocations: 0.649 MB / 0.54 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006798/0.5113, allocations: 352.5 kB / 0.5403 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.149e-05/0.5114, allocations: 15.42 kB / 0.5403 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008154/0.5122, allocations: 444.2 kB / 0.5407 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 5.611e-06/0.5123, allocations: 4 kB / 0.5407 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.006495/0.5188, allocations: 2.749 MB / 0.5434 GB, free: 15.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.5189, allocations: 110.2 kB / 0.5435 GB, free: 14.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/0.521, allocations: 0.7495 MB / 0.5443 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001307/0.5212, allocations: 37.7 kB / 0.5443 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006026/0.5218, allocations: 0.5 MB / 0.5448 GB, free: 13.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004007/0.5222, allocations: 261.8 kB / 0.545 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005165/0.5228, allocations: 174.6 kB / 0.5452 GB, free: 13.44 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002858/0.5231, allocations: 406.7 kB / 0.5456 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.5241, allocations: 373.8 kB / 0.546 GB, free: 12.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.5255, allocations: 0.6578 MB / 0.5466 GB, free: 11.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002477/0.528, allocations: 1.053 MB / 0.5476 GB, free: 10.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.501e-05/0.528, allocations: 4 kB / 0.5476 GB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.005293/0.5333, allocations: 1.632 MB / 0.5492 GB, free: 9.035 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.564e-05/0.5335, allocations: 16.03 kB / 0.5492 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.309e-05/0.5336, allocations: 8 kB / 0.5492 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002608/0.5362, allocations: 485.2 kB / 0.5497 GB, free: 8.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.5373, allocations: 171.7 kB / 0.5499 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01835/0.5557, allocations: 7.088 MB / 0.5568 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.5575, allocations: 48.03 kB / 0.5568 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003468/0.5579, allocations: 47.98 kB / 0.5569 GB, free: 0.9023 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.00152/0.5594, allocations: 349.5 kB / 0.5572 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005166/0.56, allocations: 91.39 kB / 0.5573 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003976/0.564, allocations: 1.118 MB / 0.5584 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/0.564, allocations: 7.984 kB / 0.5584 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.564, allocations: 4 kB / 0.5584 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.5641, allocations: 3.984 kB / 0.5584 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007115/0.5712, allocations: 2.111 MB / 0.5605 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.5712, allocations: 0 / 0.5605 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.5728, allocations: 127.9 kB / 0.5606 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.5739, allocations: 158.4 kB / 0.5607 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.574, allocations: 23.98 kB / 0.5608 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007307/0.5814, allocations: 4.809 MB / 0.5655 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/0.5814, allocations: 4.031 kB / 0.5655 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004901/0.5863, allocations: 1.539 MB / 0.567 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008707/0.5872, allocations: 212.5 kB / 0.5672 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003838/0.5877, allocations: 23.98 kB / 0.5672 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.5888, allocations: 31.97 kB / 0.5672 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.5891, allocations: 48.38 kB / 0.5673 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.5892, allocations: 35.92 kB / 0.5673 GB, free: 5.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001663/0.5909, allocations: 0.5146 MB / 0.5678 GB, free: 5.012 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5909, allocations: 0 / 0.5678 GB, free: 5.012 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002411/0.5934, allocations: 263.9 kB / 0.5681 GB, free: 4.754 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.006802/0.6002, allocations: 2.378 MB / 0.5704 GB, free: 2.438 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005256/0.6055, allocations: 1.341 MB / 0.5717 GB, free: 1.066 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.6056, allocations: 0 / 0.5717 GB, free: 1.066 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.6081, allocations: 0.7819 MB / 0.5725 GB, free: 252 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/0.6107, allocations: 222 kB / 0.5727 GB, free: 32 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0317/0.6425, allocations: 9.869 MB / 0.5823 GB, free: 5.727 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/0.6444, allocations: 1.143 MB / 0.5834 GB, free: 4.555 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001662/0.6461, allocations: 231.3 kB / 0.5836 GB, free: 4.324 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.6472, allocations: 359.3 kB / 0.584 GB, free: 3.973 MB / 446.1 MB Notification: Performance of SimCode: time 2.384e-06/0.6472, allocations: 0 / 0.584 GB, free: 3.973 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2915/0.9388, allocations: 23.83 MB / 0.6073 GB, free: 12.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.6/26.54, allocations: 3.938 kB / 0.6073 GB, free: 12.3 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)