Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",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.001225/0.001225, allocations: 105.8 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.001192/0.001192, 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.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1753/0.1753, allocations: 38.03 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001365, allocations: 74.47 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.088/0.08938, allocations: 58.06 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007461/0.09687, allocations: 5.698 MB / 462.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006293/0.1032, allocations: 4.444 MB / 467.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000466/0.1037, allocations: 23.88 kB / 467.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008998/0.1127, allocations: 4.897 MB / 472 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.1137, allocations: 434 kB / 472.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006545/0.1144, allocations: 275.5 kB / 472.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.1165, allocations: 1.731 MB / 474.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009292/0.1175, allocations: 0.7158 MB / 475.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007404/0.1182, allocations: 482.4 kB / 475.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007909/0.119, allocations: 0.4982 MB / 476.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.1192, allocations: 72 kB / 476.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003706/0.1196, allocations: 147.8 kB / 476.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000361/0.12, allocations: 323.3 kB / 476.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005133/0.1205, allocations: 394.2 kB / 477.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001089/0.1216, allocations: 1.02 MB / 478.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1216, allocations: 3.938 kB / 478.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1216, allocations: 4 kB / 478.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.34e-05/0.1216, allocations: 4 kB / 478.1 MB, free: 2.742 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001981/0.1236, allocations: 1.028 MB / 479.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.1237, allocations: 11.89 kB / 479.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.1238, allocations: 110.7 kB / 479.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004225/0.1242, allocations: 95.97 kB / 479.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.1254, allocations: 0.5996 MB / 479.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.121e-05/0.1255, allocations: 83 kB / 480 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.1256, allocations: 63.98 kB / 480.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.1268, allocations: 0.8098 MB / 480.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.1268, allocations: 3.906 kB / 480.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.276e-05/0.1269, allocations: 27.98 kB / 480.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.127, allocations: 53.28 kB / 481 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009467/0.128, allocations: 0.5828 MB / 481.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003938/0.1319, allocations: 2.935 MB / 484.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00082/0.1328, allocations: 430.1 kB / 484.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003358/0.1331, allocations: 230.7 kB / 485.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.1331, allocations: 7.984 kB / 485.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004654/0.1336, allocations: 338.5 kB / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.515e-06/0.1336, allocations: 4 kB / 485.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003301/0.1369, allocations: 2.039 MB / 487.5 MB, free: 8.855 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.137, allocations: 136.5 kB / 487.6 MB, free: 8.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005077/0.1375, allocations: 449.8 kB / 488.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.654e-05/0.1376, allocations: 37.64 kB / 488.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.1379, allocations: 327.8 kB / 488.4 MB, free: 7.875 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.138, allocations: 161.7 kB / 488.6 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.1382, allocations: 118.2 kB / 488.7 MB, free: 7.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1384, allocations: 362.8 kB / 489.1 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.1387, allocations: 233.2 kB / 489.3 MB, free: 7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.1392, allocations: 397.7 kB / 489.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.142, allocations: 1.324 MB / 491 MB, free: 5.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.142, allocations: 4 kB / 491 MB, free: 5.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001805/0.1438, allocations: 0.9746 MB / 492 MB, free: 4.121 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.529e-05/0.1439, allocations: 33.7 kB / 492 MB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.1439, allocations: 7.938 kB / 492 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009475/0.1448, allocations: 312.4 kB / 492.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009661/0.1458, allocations: 175.7 kB / 492.5 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006368/0.1522, allocations: 5.299 MB / 497.8 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.1525, allocations: 23.98 kB / 497.8 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.138e-05/0.1526, allocations: 28.12 kB / 497.8 MB, free: 13.97 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0003656/0.153, allocations: 307.2 kB / 498.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.947e-05/0.1531, allocations: 51.34 kB / 498.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.1542, allocations: 0.8054 MB / 499 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1542, allocations: 8 kB / 499 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1542, allocations: 0 / 499 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1543, allocations: 0 / 499 MB, free: 12.73 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.1564, allocations: 1.663 MB / 0.4889 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1565, allocations: 0 / 0.4889 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.1578, allocations: 195.9 kB / 0.4891 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/0.158, allocations: 78.47 kB / 0.4892 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.1581, allocations: 15.98 kB / 0.4892 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002954/0.161, allocations: 4.257 MB / 0.4934 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1611, allocations: 4.031 kB / 0.4934 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.1626, allocations: 1.13 MB / 0.4945 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.1628, allocations: 172.3 kB / 0.4946 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.217e-05/0.1629, allocations: 16 kB / 0.4947 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.1632, allocations: 19.98 kB / 0.4947 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.64e-05/0.1633, allocations: 39.89 kB / 0.4947 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.1633, allocations: 12 kB / 0.4947 GB, free: 4.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003423/0.1637, allocations: 315.1 kB / 0.495 GB, free: 4.172 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1637, allocations: 3.938 kB / 0.495 GB, free: 4.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006874/0.1644, allocations: 164 kB / 0.4952 GB, free: 4.008 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%), (1,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.00172/0.1661, allocations: 1.673 MB / 0.4968 GB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001997/0.1681, allocations: 1.05 MB / 0.4979 GB, free: 1.152 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1681, allocations: 0.8125 kB / 0.4979 GB, free: 1.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007814/0.1689, allocations: 0.6477 MB / 0.4985 GB, free: 464 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006988/0.1696, allocations: 136 kB / 0.4986 GB, free: 336 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008963/0.1786, allocations: 6.231 MB / 0.5047 GB, free: 9.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007277/0.1794, allocations: 0.98 MB / 0.5057 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003889/0.1798, allocations: 112.7 kB / 0.5058 GB, free: 8.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/0.1801, allocations: 215.4 kB / 0.506 GB, free: 8.516 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.1801, allocations: 4 kB / 0.506 GB, free: 8.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2871/0.4673, allocations: 13.93 MB / 0.5196 GB, free: 72.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.87, allocations: 3.875 kB / 0.5196 GB, free: 72.58 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)