Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",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.001067/0.001067, allocations: 109.1 kB / 16.92 MB, free: 6.145 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.001049/0.001049, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.346/1.346, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1845/0.1845, allocations: 38.03 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 61.55 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1053, allocations: 58.07 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.009002/0.1144, allocations: 5.21 MB / 462.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008815/0.1233, allocations: 3.971 MB / 466.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005029/0.1238, allocations: 15.94 kB / 466.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01502/0.1388, allocations: 4.792 MB / 471 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001327/0.1402, allocations: 322.5 kB / 471.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.1413, allocations: 219.6 kB / 471.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003355/0.1446, allocations: 1.551 MB / 473 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.1458, allocations: 0.5924 MB / 473.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007066/0.1465, allocations: 362.8 kB / 474 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008596/0.1474, allocations: 406.4 kB / 474.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001869/0.1476, allocations: 60 kB / 474.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002963/0.1479, allocations: 67.98 kB / 474.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004232/0.1484, allocations: 259.3 kB / 474.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005346/0.1489, allocations: 318.5 kB / 475.1 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000997/0.1499, allocations: 0.8022 MB / 475.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1499, allocations: 0 / 475.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1499, allocations: 0 / 475.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.119e-05/0.15, allocations: 0 / 475.9 MB, free: 4.953 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.00173/0.1517, allocations: 0.8707 MB / 476.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1517, allocations: 11.89 kB / 476.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.1519, allocations: 90.7 kB / 476.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003058/0.1522, allocations: 72.03 kB / 476.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.1532, allocations: 0.5527 MB / 477.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.1533, allocations: 32.98 kB / 477.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.537e-05/0.1534, allocations: 44 kB / 477.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.1544, allocations: 0.6258 MB / 478.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.1544, allocations: 7.984 kB / 478.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.118e-05/0.1545, allocations: 19.98 kB / 478.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.1546, allocations: 52.95 kB / 478.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008801/0.1555, allocations: 467.5 kB / 478.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003206/0.1587, allocations: 2.518 MB / 481.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000496/0.1592, allocations: 277.2 kB / 481.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.1595, allocations: 142.2 kB / 481.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.1595, allocations: 4.5 kB / 481.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.001e-05/0.1596, allocations: 54.42 kB / 481.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.334e-06/0.1596, allocations: 0 / 481.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003035/0.1626, allocations: 1.538 MB / 483.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.1627, allocations: 81.11 kB / 483.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.1633, allocations: 414 kB / 483.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.1633, allocations: 33.7 kB / 483.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.1635, allocations: 299.5 kB / 484 MB, free: 12.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.1636, allocations: 106.5 kB / 484.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.1638, allocations: 82.03 kB / 484.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1639, allocations: 362.7 kB / 484.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002465/0.1642, allocations: 132.8 kB / 484.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003031/0.1645, allocations: 278.3 kB / 485 MB, free: 11.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005891/0.1651, allocations: 457.6 kB / 485.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1651, allocations: 3.938 kB / 485.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001134/0.1663, allocations: 0.6758 MB / 486.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1663, allocations: 12 kB / 486.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1663, allocations: 7.938 kB / 486.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004472/0.1668, allocations: 141.6 kB / 486.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003239/0.1671, allocations: 79.83 kB / 486.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003441/0.1706, allocations: 3.668 MB / 490 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.1709, allocations: 23.92 kB / 490 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.013e-05/0.171, allocations: 16 kB / 490.1 MB, free: 5.844 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003742/0.1714, allocations: 233.7 kB / 490.3 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1715, allocations: 51.36 kB / 490.3 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/0.1727, allocations: 0.5633 MB / 490.9 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1727, allocations: 8 kB / 490.9 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000811/0.1735, allocations: 486.3 kB / 491.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.1735, allocations: 7.984 kB / 491.4 MB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.1752, allocations: 0.998 MB / 492.4 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1752, allocations: 4 kB / 492.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.1754, allocations: 44 kB / 492.4 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002892/0.1757, allocations: 92.78 kB / 492.5 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.1758, allocations: 4 kB / 492.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002133/0.1779, allocations: 2.024 MB / 494.5 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.1779, allocations: 7.969 kB / 494.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.179, allocations: 0.6458 MB / 495.2 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.1792, allocations: 140.5 kB / 495.3 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.489e-05/0.1793, allocations: 8 kB / 495.3 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.1795, allocations: 8 kB / 495.4 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.1796, allocations: 19.97 kB / 495.4 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.1796, allocations: 12 kB / 495.4 MB, free: 176 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004252/0.1801, allocations: 303.1 kB / 495.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1801, allocations: 4.062 kB / 495.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006389/0.1807, allocations: 123.9 kB / 495.8 MB, free: 15.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001196/0.1819, allocations: 1.181 MB / 497 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.1831, allocations: 0.635 MB / 497.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1831, allocations: 0 / 497.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000521/0.1836, allocations: 307.2 kB / 497.9 MB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007799/0.1844, allocations: 112.8 kB / 498 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007024/0.1915, allocations: 4.818 MB / 0.4911 GB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.192, allocations: 0.9245 MB / 0.492 GB, free: 7.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002962/0.1923, allocations: 72.31 kB / 0.492 GB, free: 7.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/0.1926, allocations: 183.4 kB / 0.4922 GB, free: 7.16 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1926, allocations: 0 / 0.4922 GB, free: 7.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05031/0.2429, allocations: 10.26 MB / 0.5022 GB, free: 13.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.421/9.664, allocations: 22.73 kB / 0.5023 GB, free: 13.02 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)