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.001013/0.001013, allocations: 111.8 kB / 16.62 MB, free: 6.812 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.001075/0.001075, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.285/1.285, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1711/0.1711, allocations: 38.02 MB / 329.4 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 65.83 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.116, allocations: 58.07 MB / 456.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009283/0.1253, allocations: 6.77 MB / 463.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007773/0.1332, allocations: 4.756 MB / 468 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008317/0.134, allocations: 39.75 kB / 468 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009247/0.1433, allocations: 4.961 MB / 473 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.1444, allocations: 414.4 kB / 473.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007116/0.1452, allocations: 243.7 kB / 473.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00228/0.1475, allocations: 1.774 MB / 475.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.1486, allocations: 0.743 MB / 476.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008644/0.1495, allocations: 486.4 kB / 476.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008747/0.1504, allocations: 0.5294 MB / 477.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002161/0.1506, allocations: 72 kB / 477.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004155/0.1511, allocations: 143.8 kB / 477.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004209/0.1515, allocations: 331.2 kB / 477.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006818/0.1522, allocations: 398.2 kB / 478.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.1536, allocations: 1.032 MB / 479.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1536, allocations: 0 / 479.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1536, allocations: 0 / 479.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.138e-05/0.1536, allocations: 0 / 479.1 MB, free: 1.598 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.002525/0.1562, allocations: 1.025 MB / 480.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1562, allocations: 11.89 kB / 480.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.1564, allocations: 110.6 kB / 480.2 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004797/0.1569, allocations: 92.06 kB / 480.3 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.1581, allocations: 0.6076 MB / 480.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.662e-05/0.1582, allocations: 86.98 kB / 481 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.1583, allocations: 67.84 kB / 481.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.1597, allocations: 0.806 MB / 481.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.1597, allocations: 0 / 481.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-05/0.1598, allocations: 27.98 kB / 481.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001282/0.1599, allocations: 53.28 kB / 482 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009687/0.1609, allocations: 0.5828 MB / 482.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004564/0.1655, allocations: 2.939 MB / 485.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008028/0.1663, allocations: 438.1 kB / 485.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.1666, allocations: 226.7 kB / 486.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.1667, allocations: 4 kB / 486.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000497/0.1672, allocations: 350.4 kB / 486.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 3.096e-06/0.1672, allocations: 0 / 486.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003303/0.1705, allocations: 2.032 MB / 488.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.152e-05/0.1706, allocations: 144.4 kB / 488.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005413/0.1711, allocations: 449.8 kB / 489.1 MB, free: 7.082 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.825e-05/0.1712, allocations: 37.7 kB / 489.1 MB, free: 7.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/0.1715, allocations: 335.8 kB / 489.5 MB, free: 6.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.1717, allocations: 153.8 kB / 489.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.1719, allocations: 122.1 kB / 489.7 MB, free: 6.426 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1721, allocations: 358.8 kB / 490.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003666/0.1724, allocations: 233.2 kB / 490.3 MB, free: 5.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.1729, allocations: 393.7 kB / 490.7 MB, free: 5.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00266/0.1756, allocations: 1.331 MB / 492 MB, free: 3.957 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.1756, allocations: 4 kB / 492 MB, free: 3.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001715/0.1773, allocations: 0.959 MB / 493 MB, free: 2.973 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/0.1774, allocations: 38.06 kB / 493 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.1774, allocations: 8 kB / 493 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008915/0.1783, allocations: 305.3 kB / 493.3 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008787/0.1792, allocations: 179.8 kB / 493.5 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006296/0.1855, allocations: 5.305 MB / 498.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003426/0.1858, allocations: 27.98 kB / 498.8 MB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.1859, allocations: 27.94 kB / 498.9 MB, free: 12.82 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.0003843/0.1863, allocations: 299.2 kB / 499.2 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-05/0.1864, allocations: 59.27 kB / 499.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.1878, allocations: 0.8055 MB / 0.4883 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1878, allocations: 4 kB / 0.4883 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1878, allocations: 0 / 0.4883 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1878, allocations: 3.984 kB / 0.4883 GB, free: 11.58 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.002334/0.1902, allocations: 1.658 MB / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1902, allocations: 0 / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.1914, allocations: 199.9 kB / 0.4901 GB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002139/0.1916, allocations: 78.45 kB / 0.4902 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-05/0.1917, allocations: 16 kB / 0.4902 GB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/0.1947, allocations: 4.253 MB / 0.4944 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1947, allocations: 0 / 0.4944 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.1961, allocations: 1.131 MB / 0.4955 GB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.1964, allocations: 176.4 kB / 0.4956 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.493e-05/0.1965, allocations: 11.91 kB / 0.4956 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.1967, allocations: 23.98 kB / 0.4957 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.995e-05/0.1969, allocations: 35.89 kB / 0.4957 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.1969, allocations: 12 kB / 0.4957 GB, free: 3.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003335/0.1972, allocations: 319.1 kB / 0.496 GB, free: 3.027 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1972, allocations: 0 / 0.496 GB, free: 3.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006411/0.1979, allocations: 164 kB / 0.4962 GB, free: 2.867 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.00177/0.1997, allocations: 1.675 MB / 0.4978 GB, free: 1.098 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.2015, allocations: 1.058 MB / 0.4988 GB, free: 0 / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2015, allocations: 0 / 0.4988 GB, free: 0 / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008638/0.2024, allocations: 0.6445 MB / 0.4995 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000706/0.2031, allocations: 133.1 kB / 0.4996 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009488/0.2126, allocations: 6.464 MB / 0.5059 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006701/0.2133, allocations: 0.9761 MB / 0.5069 GB, free: 7.461 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003906/0.2137, allocations: 116.7 kB / 0.507 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003115/0.214, allocations: 219.4 kB / 0.5072 GB, free: 7.133 MB / 398.1 MB Notification: Performance of SimCode: time 1.243e-06/0.2141, allocations: 4 kB / 0.5072 GB, free: 7.129 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2209/0.435, allocations: 13.81 MB / 0.5207 GB, free: 72.49 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.4351, allocations: 225.8 kB / 0.5209 GB, free: 72.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.226/2.661, allocations: 7 kB / 0.5209 GB, free: 72.24 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)