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.001204/0.001204, allocations: 97.83 kB / 16.5 MB, free: 6.648 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.001295/0.001295, allocations: 194 kB / 17.42 MB, free: 6.066 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.259/1.259, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1609/0.1609, allocations: 38.04 MB / 329.3 MB, free: 9.086 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.27 kB / 398.2 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0969/0.09823, allocations: 58.07 MB / 456.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01072/0.109, allocations: 8.343 MB / 464.6 MB, free: 60 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009995/0.119, allocations: 5.64 MB / 470.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.1206, allocations: 51.69 kB / 470.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.1319, allocations: 5.653 MB / 475.9 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.1334, allocations: 497.9 kB / 476.4 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.1347, allocations: 455.3 kB / 476.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003498/0.1382, allocations: 2.951 MB / 479.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001268/0.1395, allocations: 0.7907 MB / 480.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009754/0.1405, allocations: 0.5096 MB / 481.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.1416, allocations: 0.7435 MB / 481.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.1419, allocations: 56 kB / 481.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006949/0.1426, allocations: 227.8 kB / 482.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006003/0.1432, allocations: 458.7 kB / 482.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008424/0.1441, allocations: 0.5363 MB / 483.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.1456, allocations: 1.495 MB / 484.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1456, allocations: 0 / 484.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1456, allocations: 3.938 kB / 484.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.269e-05/0.1456, allocations: 0 / 484.6 MB, free: 11.96 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.003237/0.1489, allocations: 1.456 MB / 486.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.1489, allocations: 16.02 kB / 486.1 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002122/0.1492, allocations: 139.6 kB / 486.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006497/0.1498, allocations: 147.5 kB / 486.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.1514, allocations: 0.8819 MB / 487.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.048e-05/0.1515, allocations: 61.98 kB / 487.3 MB, free: 9.164 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.1516, allocations: 91.89 kB / 487.4 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.1534, allocations: 1.227 MB / 488.6 MB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.1534, allocations: 4 kB / 488.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.592e-05/0.1535, allocations: 31.98 kB / 488.7 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/0.1538, allocations: 97.81 kB / 488.8 MB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.1554, allocations: 0.9992 MB / 489.8 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00651/0.1619, allocations: 4.92 MB / 494.7 MB, free: 1.516 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009477/0.1629, allocations: 0.6535 MB / 495.3 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005516/0.1634, allocations: 359.3 kB / 495.7 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.358e-05/0.1635, allocations: 12.55 kB / 495.7 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006627/0.1642, allocations: 449.8 kB / 496.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 2.475e-06/0.1642, allocations: 0 / 496.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.004731/0.1689, allocations: 2.723 MB / 498.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.677e-05/0.169, allocations: 111.4 kB / 499 MB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009038/0.17, allocations: 0.7506 MB / 499.7 MB, free: 12.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.916e-05/0.17, allocations: 41.7 kB / 499.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.1704, allocations: 0.4986 MB / 0.4885 GB, free: 11.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.1706, allocations: 232.6 kB / 0.4888 GB, free: 11.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002768/0.1708, allocations: 186.5 kB / 0.4889 GB, free: 11.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.171, allocations: 402.7 kB / 0.4893 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005514/0.1716, allocations: 377.7 kB / 0.4897 GB, free: 10.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007687/0.1724, allocations: 0.65 MB / 0.4903 GB, free: 9.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.1737, allocations: 1.049 MB / 0.4913 GB, free: 8.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1737, allocations: 4 kB / 0.4913 GB, free: 8.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002936/0.1767, allocations: 1.619 MB / 0.4929 GB, free: 6.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1767, allocations: 12.06 kB / 0.4929 GB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.1767, allocations: 11.98 kB / 0.493 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/0.1783, allocations: 485.3 kB / 0.4934 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.1789, allocations: 171.6 kB / 0.4936 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009268/0.1882, allocations: 6.506 MB / 0.4999 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008679/0.1891, allocations: 44.03 kB / 0.5 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.1893, allocations: 47.98 kB / 0.5 GB, free: 15.35 MB / 398.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.0006626/0.1899, allocations: 359.6 kB / 0.5004 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.1901, allocations: 90.86 kB / 0.5005 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.192, allocations: 1.11 MB / 0.5015 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.192, allocations: 4 kB / 0.5015 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.192, allocations: 4 kB / 0.5015 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.192, allocations: 7.922 kB / 0.5015 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003388/0.1954, allocations: 2.123 MB / 0.5036 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.1955, allocations: 0 / 0.5036 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007235/0.1962, allocations: 119.8 kB / 0.5037 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005289/0.1967, allocations: 166.5 kB / 0.5039 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-05/0.1968, allocations: 23.98 kB / 0.5039 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003588/0.2004, allocations: 4.462 MB / 0.5083 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2004, allocations: 0 / 0.5083 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002207/0.2026, allocations: 1.533 MB / 0.5098 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/0.203, allocations: 208 kB / 0.51 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.2032, allocations: 23.98 kB / 0.51 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004685/0.2037, allocations: 31.97 kB / 0.51 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.2038, allocations: 56.31 kB / 0.5101 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.114e-05/0.2039, allocations: 23.98 kB / 0.5101 GB, free: 4.344 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006827/0.2046, allocations: 0.5146 MB / 0.5106 GB, free: 3.836 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2046, allocations: 0 / 0.5106 GB, free: 3.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00109/0.2057, allocations: 268.1 kB / 0.5109 GB, free: 3.574 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.003231/0.2089, allocations: 2.391 MB / 0.5132 GB, free: 1.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.1582/0.3671, allocations: 1.312 MB / 0.5145 GB, free: 71.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.3671, allocations: 0.625 kB / 0.5145 GB, free: 71.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.3686, allocations: 0.7851 MB / 0.5152 GB, free: 71.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.3697, allocations: 198.4 kB / 0.5154 GB, free: 71.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01515/0.3849, allocations: 10.46 MB / 0.5256 GB, free: 66.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007828/0.3857, allocations: 1.145 MB / 0.5268 GB, free: 65.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008824/0.3866, allocations: 235.3 kB / 0.527 GB, free: 65.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005203/0.3871, allocations: 358.1 kB / 0.5273 GB, free: 65.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.773e-06/0.3871, allocations: 0 / 0.5273 GB, free: 65.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03775/0.4249, allocations: 22.71 MB / 0.5495 GB, free: 51.93 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.4251, allocations: 277.3 kB / 0.5498 GB, free: 51.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/2.629, allocations: 0 / 0.5498 GB, free: 51.57 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)