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.001132/0.001132, allocations: 106.5 kB / 16.92 MB, free: 5.781 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.001134/0.001135, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.322/1.322, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1731/0.1731, allocations: 38.03 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 61.34 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09582, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008633/0.1045, allocations: 7.111 MB / 464.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007613/0.1121, allocations: 5.09 MB / 469.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006637/0.1128, allocations: 31.81 kB / 469.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01099/0.1238, allocations: 5.699 MB / 474.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.1254, allocations: 0.5131 MB / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1267, allocations: 498.9 kB / 475.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003212/0.1299, allocations: 2.245 MB / 478.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0014/0.1313, allocations: 0.9275 MB / 479.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.1324, allocations: 0.6072 MB / 479.7 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.1335, allocations: 0.7241 MB / 480.4 MB, free: 432 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003183/0.1338, allocations: 100 kB / 480.5 MB, free: 332 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007155/0.1345, allocations: 251.7 kB / 480.7 MB, free: 80 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005429/0.1351, allocations: 0.491 MB / 481.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007986/0.1359, allocations: 0.5754 MB / 481.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001573/0.1375, allocations: 1.53 MB / 483.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1375, allocations: 0 / 483.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1375, allocations: 0 / 483.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.323e-05/0.1375, allocations: 0 / 483.3 MB, free: 13.47 MB / 366.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.00319/0.1407, allocations: 1.449 MB / 484.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1408, allocations: 19.77 kB / 484.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000201/0.141, allocations: 147.5 kB / 485 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006267/0.1416, allocations: 155.4 kB / 485.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.1432, allocations: 0.8625 MB / 486 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.014e-05/0.1433, allocations: 65.97 kB / 486 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.1434, allocations: 87.98 kB / 486.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.1452, allocations: 1.231 MB / 487.3 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/0.1452, allocations: 7.844 kB / 487.4 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.42e-05/0.1453, allocations: 43.92 kB / 487.4 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002198/0.1456, allocations: 89.88 kB / 487.5 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.1472, allocations: 0.9992 MB / 488.5 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006202/0.1534, allocations: 4.924 MB / 493.4 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009149/0.1543, allocations: 0.6537 MB / 494.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000537/0.1548, allocations: 351.3 kB / 494.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.299e-05/0.1549, allocations: 16.55 kB / 494.4 MB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006133/0.1555, allocations: 445.8 kB / 494.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.485e-06/0.1555, allocations: 0 / 494.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004447/0.16, allocations: 2.715 MB / 497.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.1601, allocations: 111.4 kB / 497.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008375/0.1609, allocations: 0.7467 MB / 498.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.757e-05/0.161, allocations: 45.64 kB / 498.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003416/0.1613, allocations: 0.4948 MB / 499 MB, free: 13.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.1615, allocations: 236.6 kB / 499.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.1618, allocations: 186.5 kB / 499.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.162, allocations: 398.7 kB / 499.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005815/0.1626, allocations: 377.8 kB / 0.4884 GB, free: 12.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007428/0.1633, allocations: 0.6578 MB / 0.4891 GB, free: 11.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.1647, allocations: 1.045 MB / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.1647, allocations: 8 kB / 0.4901 GB, free: 10.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002936/0.1677, allocations: 1.627 MB / 0.4917 GB, free: 8.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.1677, allocations: 8 kB / 0.4917 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.1677, allocations: 12 kB / 0.4917 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001451/0.1692, allocations: 489.9 kB / 0.4922 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006433/0.1698, allocations: 167.7 kB / 0.4923 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009622/0.1795, allocations: 7.09 MB / 0.4992 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007558/0.1803, allocations: 44.03 kB / 0.4993 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.1804, allocations: 48 kB / 0.4993 GB, free: 268 kB / 382.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.000565/0.181, allocations: 357.5 kB / 0.4997 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.1812, allocations: 86.88 kB / 0.4998 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.1831, allocations: 1.118 MB / 0.5009 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.1831, allocations: 4 kB / 0.5009 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1831, allocations: 4 kB / 0.5009 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.1832, allocations: 3.984 kB / 0.5009 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00355/0.1867, allocations: 2.119 MB / 0.5029 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1867, allocations: 0 / 0.5029 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007188/0.1875, allocations: 123.9 kB / 0.5031 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005124/0.188, allocations: 162.4 kB / 0.5032 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.362e-05/0.1881, allocations: 19.98 kB / 0.5032 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004312/0.1924, allocations: 4.812 MB / 0.5079 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.1924, allocations: 4.031 kB / 0.5079 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002538/0.195, allocations: 1.536 MB / 0.5094 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004606/0.1954, allocations: 219.9 kB / 0.5096 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.1956, allocations: 16 kB / 0.5097 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004793/0.1961, allocations: 31.97 kB / 0.5097 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.1963, allocations: 56.42 kB / 0.5097 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.266e-05/0.1963, allocations: 27.92 kB / 0.5098 GB, free: 4.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007136/0.197, allocations: 0.5068 MB / 0.5103 GB, free: 4.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.197, allocations: 3.938 kB / 0.5103 GB, free: 4.375 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001237/0.1983, allocations: 264 kB / 0.5105 GB, free: 4.117 MB / 398.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.003452/0.2018, allocations: 2.397 MB / 0.5129 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002812/0.2046, allocations: 1.459 MB / 0.5143 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.2046, allocations: 0 / 0.5143 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1607/0.3653, allocations: 0.7737 MB / 0.515 GB, free: 70.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.3666, allocations: 210.3 kB / 0.5152 GB, free: 70.89 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/0.3811, allocations: 10.12 MB / 0.5251 GB, free: 66.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007676/0.3819, allocations: 1.146 MB / 0.5262 GB, free: 65.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009196/0.3829, allocations: 234.5 kB / 0.5265 GB, free: 65.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000465/0.3833, allocations: 359 kB / 0.5268 GB, free: 65.34 MB / 398.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3833, allocations: 0 / 0.5268 GB, free: 65.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05059/0.4339, allocations: 23.47 MB / 0.5497 GB, free: 50.97 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.24, allocations: 13.73 kB / 0.5497 GB, free: 50.97 MB / 398.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)