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.001088/0.001088, allocations: 114.3 kB / 17.07 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.001007/0.001007, allocations: 191 kB / 18 MB, free: 5.098 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.394/1.394, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2093/0.2093, allocations: 38.03 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3429, allocations: 58.06 MB / 0.5036 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007722/0.3507, allocations: 7.12 MB / 0.5106 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007891/0.3586, allocations: 5.082 MB / 0.5155 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000892/0.3595, allocations: 31.62 kB / 0.5156 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01307/0.3726, allocations: 5.709 MB / 0.5211 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00213/0.3748, allocations: 0.5233 MB / 0.5216 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.3767, allocations: 0.4904 MB / 0.5221 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004121/0.3808, allocations: 2.252 MB / 0.5243 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.3823, allocations: 0.9289 MB / 0.5252 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.3835, allocations: 0.6186 MB / 0.5258 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.3847, allocations: 0.72 MB / 0.5265 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001728/0.3849, allocations: 100 kB / 0.5266 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006388/0.3856, allocations: 257.2 kB / 0.5269 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004683/0.386, allocations: 0.4913 MB / 0.5274 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000676/0.3867, allocations: 0.5756 MB / 0.5279 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001935/0.3887, allocations: 1.558 MB / 0.5294 GB, free: 9.273 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3887, allocations: 4 kB / 0.5294 GB, free: 9.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3887, allocations: 0 / 0.5294 GB, free: 9.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.3887, allocations: 1.094 kB / 0.5294 GB, free: 9.27 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.003208/0.3919, allocations: 1.482 MB / 0.5309 GB, free: 8.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.392, allocations: 13.02 kB / 0.5309 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.3922, allocations: 144 kB / 0.531 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006594/0.3929, allocations: 150.1 kB / 0.5312 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.3948, allocations: 0.9103 MB / 0.5321 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.053e-05/0.3948, allocations: 66.92 kB / 0.5321 GB, free: 7.234 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.395, allocations: 92.22 kB / 0.5322 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001896/0.3969, allocations: 1.232 MB / 0.5334 GB, free: 6.398 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.205e-05/0.3969, allocations: 6.422 kB / 0.5334 GB, free: 6.395 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-05/0.397, allocations: 36.45 kB / 0.5335 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002415/0.3973, allocations: 92.38 kB / 0.5336 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.3989, allocations: 1.004 MB / 0.5345 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006563/0.4055, allocations: 4.903 MB / 0.5393 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009514/0.4065, allocations: 0.6443 MB / 0.54 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005505/0.4071, allocations: 364.2 kB / 0.5403 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.4071, allocations: 8.25 kB / 0.5403 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007092/0.4078, allocations: 451.3 kB / 0.5407 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.174e-06/0.4078, allocations: 0 / 0.5407 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004785/0.4126, allocations: 2.74 MB / 0.5434 GB, free: 15.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.4127, allocations: 114.1 kB / 0.5435 GB, free: 14.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009799/0.4137, allocations: 0.7534 MB / 0.5443 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.4138, allocations: 37.7 kB / 0.5443 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003924/0.4142, allocations: 0.5039 MB / 0.5448 GB, free: 13.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.4144, allocations: 257.8 kB / 0.545 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000258/0.4146, allocations: 178.6 kB / 0.5452 GB, free: 13.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.4148, allocations: 398.7 kB / 0.5456 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005825/0.4154, allocations: 377.8 kB / 0.546 GB, free: 12.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007336/0.4162, allocations: 0.6616 MB / 0.5466 GB, free: 11.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.4177, allocations: 1.057 MB / 0.5476 GB, free: 10.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4177, allocations: 0 / 0.5476 GB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003101/0.4208, allocations: 1.631 MB / 0.5492 GB, free: 9.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.4208, allocations: 12.44 kB / 0.5492 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.4208, allocations: 8 kB / 0.5492 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.4224, allocations: 493.3 kB / 0.5497 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006233/0.423, allocations: 163.7 kB / 0.5499 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01324/0.4363, allocations: 7.089 MB / 0.5568 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.4376, allocations: 44.03 kB / 0.5568 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/0.4377, allocations: 44 kB / 0.5569 GB, free: 0.9102 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.0008593/0.4386, allocations: 353.5 kB / 0.5572 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.4388, allocations: 91.39 kB / 0.5573 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002716/0.4415, allocations: 1.114 MB / 0.5584 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.4416, allocations: 8 kB / 0.5584 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.4416, allocations: 0 / 0.5584 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.4416, allocations: 3.984 kB / 0.5584 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005576/0.4472, allocations: 2.123 MB / 0.5605 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4472, allocations: 0 / 0.5605 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/0.4486, allocations: 119.8 kB / 0.5606 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009995/0.4497, allocations: 166.5 kB / 0.5607 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.263e-05/0.4498, allocations: 23.92 kB / 0.5608 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00717/0.457, allocations: 4.809 MB / 0.5655 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.343e-06/0.457, allocations: 8.016 kB / 0.5655 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004308/0.4613, allocations: 1.539 MB / 0.567 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007076/0.4621, allocations: 208.5 kB / 0.5672 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002147/0.4623, allocations: 23.98 kB / 0.5672 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000758/0.4631, allocations: 31.97 kB / 0.5672 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.4633, allocations: 56.38 kB / 0.5673 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.74e-05/0.4634, allocations: 23.98 kB / 0.5673 GB, free: 5.523 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00116/0.4646, allocations: 0.5146 MB / 0.5678 GB, free: 5.016 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4646, allocations: 4 kB / 0.5678 GB, free: 5.012 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001866/0.4665, 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.005848/0.4723, allocations: 2.381 MB / 0.5704 GB, free: 2.434 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004301/0.4767, allocations: 1.334 MB / 0.5717 GB, free: 1.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4767, allocations: 7.938 kB / 0.5717 GB, free: 1.062 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/0.4789, allocations: 0.7811 MB / 0.5725 GB, free: 248 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.4808, allocations: 220 kB / 0.5727 GB, free: 32 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02279/0.5036, allocations: 9.859 MB / 0.5823 GB, free: 5.734 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008095/0.5045, allocations: 1.151 MB / 0.5834 GB, free: 4.555 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006242/0.5051, allocations: 227.3 kB / 0.5836 GB, free: 4.328 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004544/0.5056, allocations: 355.3 kB / 0.584 GB, free: 3.98 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5056, allocations: 0 / 0.584 GB, free: 3.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05398/0.5596, allocations: 23.82 MB / 0.6072 GB, free: 12.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.14/16.7, allocations: 7.938 kB / 0.6072 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)