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.001085/0.001084, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.00121/0.00121, allocations: 190 kB / 17.54 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.356/1.356, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1778/0.1778, allocations: 38.02 MB / 329.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001619, allocations: 61.08 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1121, allocations: 58.07 MB / 456.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01092/0.123, allocations: 8.347 MB / 464.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009408/0.1325, allocations: 5.471 MB / 470.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001756/0.1343, allocations: 59.62 kB / 470.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01112/0.1454, allocations: 5.814 MB / 476.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001423/0.1468, allocations: 489.9 kB / 476.6 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.1482, allocations: 451.3 kB / 477.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002967/0.1511, allocations: 2.312 MB / 479.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001476/0.1526, allocations: 0.9508 MB / 480.3 MB, free: 368 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.1538, allocations: 0.6149 MB / 480.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.1551, allocations: 0.7631 MB / 481.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003223/0.1554, allocations: 100 kB / 481.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007668/0.1562, allocations: 259.8 kB / 482 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006682/0.1569, allocations: 0.4948 MB / 482.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009941/0.1579, allocations: 0.5793 MB / 483.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001836/0.1597, allocations: 1.538 MB / 484.7 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1597, allocations: 0 / 484.7 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1598, allocations: 0 / 484.7 MB, free: 12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.281e-05/0.1598, allocations: 0 / 484.7 MB, free: 12 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.003657/0.1635, allocations: 1.448 MB / 486.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.1635, allocations: 11.89 kB / 486.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002812/0.1638, allocations: 139.6 kB / 486.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007229/0.1646, allocations: 151.5 kB / 486.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.1663, allocations: 0.8741 MB / 487.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.1664, allocations: 61.98 kB / 487.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001861/0.1666, allocations: 95.88 kB / 487.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001858/0.1684, allocations: 1.227 MB / 488.7 MB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.331e-05/0.1685, allocations: 4 kB / 488.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.791e-05/0.1686, allocations: 31.98 kB / 488.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002449/0.1688, allocations: 101.8 kB / 488.8 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.1704, allocations: 0.9953 MB / 489.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006348/0.1768, allocations: 4.932 MB / 494.7 MB, free: 1.559 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008833/0.1777, allocations: 0.6499 MB / 495.4 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005007/0.1782, allocations: 351.2 kB / 495.7 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.965e-05/0.1783, allocations: 16.55 kB / 495.7 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006014/0.1789, allocations: 449.7 kB / 496.2 MB, free: 48 kB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.044e-06/0.1789, allocations: 0 / 496.2 MB, free: 48 kB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004564/0.1835, allocations: 2.714 MB / 498.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.1836, allocations: 107.4 kB / 499 MB, free: 13.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009026/0.1845, allocations: 0.7467 MB / 499.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.044e-05/0.1846, allocations: 45.69 kB / 499.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00036/0.1849, allocations: 0.4985 MB / 0.4886 GB, free: 11.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.1851, allocations: 240.6 kB / 0.4888 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002595/0.1854, allocations: 186.4 kB / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.1856, allocations: 398.7 kB / 0.4893 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005588/0.1862, allocations: 373.7 kB / 0.4897 GB, free: 10.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007296/0.1869, allocations: 0.6578 MB / 0.4903 GB, free: 9.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.1882, allocations: 1.049 MB / 0.4914 GB, free: 8.609 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.1882, allocations: 4 kB / 0.4914 GB, free: 8.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002828/0.191, allocations: 1.627 MB / 0.493 GB, free: 6.945 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.1911, allocations: 8 kB / 0.493 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.1911, allocations: 15.94 kB / 0.493 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001437/0.1925, allocations: 481.8 kB / 0.4934 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006158/0.1932, allocations: 175.7 kB / 0.4936 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009085/0.2023, allocations: 7.099 MB / 0.5005 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.2029, allocations: 44.03 kB / 0.5006 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.811e-05/0.203, allocations: 40 kB / 0.5006 GB, free: 14.81 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.0004994/0.2035, allocations: 355.2 kB / 0.501 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.2037, allocations: 90.97 kB / 0.501 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.2054, allocations: 1.114 MB / 0.5021 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2054, allocations: 4 kB / 0.5021 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.2055, allocations: 8 kB / 0.5021 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.2055, allocations: 3.984 kB / 0.5021 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.2087, allocations: 2.127 MB / 0.5042 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2087, allocations: 3.938 kB / 0.5042 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007196/0.2095, allocations: 119.8 kB / 0.5043 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000507/0.21, allocations: 170.3 kB / 0.5045 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/0.2101, allocations: 24.02 kB / 0.5045 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003667/0.2137, allocations: 4.801 MB / 0.5092 GB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.2138, allocations: 4.031 kB / 0.5092 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.2158, allocations: 1.529 MB / 0.5107 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003177/0.2161, allocations: 215.9 kB / 0.5109 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.2163, allocations: 16 kB / 0.5109 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004611/0.2167, allocations: 31.97 kB / 0.511 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.2169, allocations: 56.42 kB / 0.511 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.858e-05/0.2169, allocations: 27.98 kB / 0.511 GB, free: 3.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006067/0.2175, allocations: 0.5068 MB / 0.5115 GB, free: 2.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2175, allocations: 3.938 kB / 0.5115 GB, free: 2.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009627/0.2185, allocations: 264.1 kB / 0.5118 GB, free: 2.664 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.003306/0.2218, allocations: 2.393 MB / 0.5141 GB, free: 336 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.1944/0.4162, allocations: 1.448 MB / 0.5155 GB, free: 71.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.4163, allocations: 2.156 kB / 0.5156 GB, free: 71.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.418, allocations: 0.7851 MB / 0.5163 GB, free: 71.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.4195, allocations: 204.1 kB / 0.5165 GB, free: 71.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/0.4371, allocations: 10.46 MB / 0.5267 GB, free: 65.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/0.4382, allocations: 1.147 MB / 0.5278 GB, free: 65.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008431/0.439, allocations: 229.7 kB / 0.5281 GB, free: 65.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005009/0.4395, allocations: 360.4 kB / 0.5284 GB, free: 64.74 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4396, allocations: 7.719 kB / 0.5284 GB, free: 64.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05169/0.4913, allocations: 23.34 MB / 0.5512 GB, free: 49.64 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/0.4915, allocations: 272.4 kB / 0.5515 GB, free: 49.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.422/2.913, allocations: 0 / 0.5515 GB, free: 49.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)