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.001486/0.001486, allocations: 104.6 kB / 16.92 MB, free: 6.141 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.0017/0.0017, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.382/1.382, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1791/0.1791, allocations: 38.03 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.00132, allocations: 64.78 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08875/0.0901, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008921/0.09906, allocations: 7.114 MB / 464.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008272/0.1074, allocations: 5.083 MB / 469.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009874/0.1084, allocations: 35.81 kB / 469.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01171/0.1201, allocations: 5.695 MB / 474.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001548/0.1217, allocations: 0.5131 MB / 475.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.1233, allocations: 0.4951 MB / 475.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003524/0.1268, allocations: 2.245 MB / 478.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.1282, allocations: 0.9274 MB / 479.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.1295, allocations: 0.611 MB / 479.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.1306, allocations: 0.7241 MB / 480.4 MB, free: 452 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002575/0.1309, allocations: 100 kB / 480.5 MB, free: 352 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006538/0.1316, allocations: 255.7 kB / 480.8 MB, free: 96 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000533/0.1321, allocations: 486.8 kB / 481.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007828/0.1329, allocations: 0.5832 MB / 481.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001712/0.1346, allocations: 1.53 MB / 483.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1346, allocations: 0 / 483.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1347, allocations: 4 kB / 483.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.757e-05/0.1347, allocations: 0 / 483.4 MB, free: 13.49 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.003292/0.138, allocations: 1.448 MB / 484.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.138, allocations: 15.89 kB / 484.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001894/0.1382, allocations: 139.6 kB / 485 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006233/0.1389, allocations: 155.3 kB / 485.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.1405, allocations: 0.8741 MB / 486 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.201e-05/0.1406, allocations: 69.92 kB / 486 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.1408, allocations: 80 kB / 486.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/0.1426, allocations: 1.231 MB / 487.4 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.1426, allocations: 3.906 kB / 487.4 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.95e-05/0.1427, allocations: 39.98 kB / 487.4 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002295/0.1429, allocations: 93.88 kB / 487.5 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.1446, allocations: 1.011 MB / 488.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006456/0.1511, allocations: 4.916 MB / 493.4 MB, free: 3.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009548/0.1521, allocations: 0.6537 MB / 494.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005424/0.1526, allocations: 351.3 kB / 494.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.1527, allocations: 12.55 kB / 494.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006344/0.1533, allocations: 453.7 kB / 494.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.656e-06/0.1533, allocations: 0 / 494.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004642/0.158, allocations: 2.708 MB / 497.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.1581, allocations: 111.4 kB / 497.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009317/0.159, allocations: 0.7545 MB / 498.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.1591, allocations: 33.7 kB / 498.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000362/0.1595, allocations: 0.4948 MB / 499 MB, free: 13.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.1597, allocations: 244.6 kB / 499.2 MB, free: 13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002702/0.1599, allocations: 182.5 kB / 499.4 MB, free: 12.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.1601, allocations: 398.7 kB / 499.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005924/0.1607, allocations: 377.8 kB / 0.4884 GB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007947/0.1615, allocations: 0.6577 MB / 0.4891 GB, free: 11.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/0.1629, allocations: 1.049 MB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1629, allocations: 0 / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002954/0.1659, allocations: 1.631 MB / 0.4917 GB, free: 8.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.1659, allocations: 14.03 kB / 0.4917 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.1659, allocations: 8 kB / 0.4917 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.1675, allocations: 486.1 kB / 0.4922 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00065/0.1682, allocations: 171.7 kB / 0.4923 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009843/0.178, allocations: 7.089 MB / 0.4993 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/0.1788, allocations: 48.03 kB / 0.4993 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.1789, allocations: 47.98 kB / 0.4993 GB, free: 296 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.00064/0.1796, allocations: 353.4 kB / 0.4997 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001866/0.1798, allocations: 86.88 kB / 0.4998 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/0.1817, allocations: 1.118 MB / 0.5009 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.1817, allocations: 8 kB / 0.5009 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1817, allocations: 4.109 kB / 0.5009 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1818, allocations: 0 / 0.5009 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003433/0.1852, allocations: 2.123 MB / 0.5029 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1852, allocations: 0 / 0.5029 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007766/0.186, allocations: 128 kB / 0.5031 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005319/0.1865, allocations: 162.3 kB / 0.5032 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.1866, allocations: 23.98 kB / 0.5032 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00409/0.1907, allocations: 4.812 MB / 0.5079 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.1907, allocations: 0 / 0.5079 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.193, allocations: 1.537 MB / 0.5094 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003368/0.1933, allocations: 215.9 kB / 0.5096 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.1935, allocations: 19.98 kB / 0.5097 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000455/0.1939, allocations: 31.97 kB / 0.5097 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.1941, allocations: 56.38 kB / 0.5098 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-05/0.1941, allocations: 23.98 kB / 0.5098 GB, free: 4.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006609/0.1948, allocations: 0.5068 MB / 0.5103 GB, free: 4.402 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1948, allocations: 4 kB / 0.5103 GB, free: 4.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009641/0.1958, allocations: 260 kB / 0.5105 GB, free: 4.145 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.003311/0.1991, allocations: 2.397 MB / 0.5129 GB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002712/0.2018, allocations: 1.463 MB / 0.5143 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.2019, allocations: 0 / 0.5143 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.17/0.3718, allocations: 0.7748 MB / 0.515 GB, free: 70.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.373, allocations: 210.3 kB / 0.5152 GB, free: 70.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.3873, allocations: 10.12 MB / 0.5251 GB, free: 66.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000684/0.388, allocations: 1.147 MB / 0.5263 GB, free: 65.6 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008838/0.3889, allocations: 233.6 kB / 0.5265 GB, free: 65.56 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/0.3894, allocations: 359.1 kB / 0.5268 GB, free: 65.3 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3894, allocations: 0 / 0.5268 GB, free: 65.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05287/0.4423, allocations: 23.48 MB / 0.5497 GB, free: 51.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.08, allocations: 8.062 kB / 0.5498 GB, free: 51.04 MB / 398.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)