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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001278/0.001278, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.267/1.267, allocations: 194.2 MB / 212.2 MB, free: 2.363 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001774/0.001774, allocations: 129.9 kB / 256.6 MB, free: 4.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1669/0.1669, allocations: 37.95 MB / 338.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 67.91 kB / 401.8 MB, free: 68.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09296, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006797/0.09979, allocations: 6.734 MB / 460.7 MB, free: 9.789 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006061/0.1059, allocations: 4.947 MB / 465.7 MB, free: 4.824 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009285/0.1068, allocations: 51.69 kB / 465.7 MB, free: 4.773 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008112/0.115, allocations: 4.809 MB / 470.5 MB, free: 15.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001405/0.1164, allocations: 414.3 kB / 470.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009515/0.1174, allocations: 247.7 kB / 471.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002827/0.1202, allocations: 2.296 MB / 473.5 MB, free: 13 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.1213, allocations: 0.6141 MB / 474.1 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008473/0.1222, allocations: 414.4 kB / 474.5 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009683/0.1232, allocations: 0.5177 MB / 475 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.1234, allocations: 40 kB / 475.1 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004431/0.1238, allocations: 131.8 kB / 475.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004196/0.1243, allocations: 295.3 kB / 475.5 MB, free: 11 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005978/0.1249, allocations: 366.2 kB / 475.8 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009349/0.1258, allocations: 1.001 MB / 476.8 MB, free: 9.641 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1258, allocations: 0 / 476.8 MB, free: 9.641 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1259, allocations: 0 / 476.8 MB, free: 9.641 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.363e-05/0.1259, allocations: 0 / 476.8 MB, free: 9.641 MB / 330.7 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.002114/0.128, allocations: 1.028 MB / 477.9 MB, free: 8.559 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.1281, allocations: 8.031 kB / 477.9 MB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003926/0.1285, allocations: 107.9 kB / 478 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.1295, allocations: 0.5997 MB / 478.6 MB, free: 7.805 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.502e-05/0.1296, allocations: 75.02 kB / 478.6 MB, free: 7.723 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.1297, allocations: 71.83 kB / 478.7 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.1308, allocations: 0.8099 MB / 479.5 MB, free: 6.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.1308, allocations: 4 kB / 479.5 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.743e-05/0.1309, allocations: 27.98 kB / 479.6 MB, free: 6.773 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.131, allocations: 49.28 kB / 479.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.1319, allocations: 0.5867 MB / 480.2 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003726/0.1356, allocations: 2.935 MB / 483.1 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007577/0.1364, allocations: 422.2 kB / 483.5 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.1367, allocations: 226.3 kB / 483.8 MB, free: 2.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.558e-05/0.1368, allocations: 8.312 kB / 483.8 MB, free: 2.426 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004514/0.1372, allocations: 351.4 kB / 484.1 MB, free: 2.059 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 1.923e-06/0.1372, allocations: 3.938 kB / 484.1 MB, free: 2.055 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.003428/0.1407, allocations: 2.482 MB / 486.6 MB, free: 15.37 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.1408, allocations: 136.5 kB / 486.7 MB, free: 15.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004303/0.1412, allocations: 453.8 kB / 487.2 MB, free: 14.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/0.1412, allocations: 37.7 kB / 487.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/0.1415, allocations: 323.9 kB / 487.5 MB, free: 14.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.1416, allocations: 169.6 kB / 487.7 MB, free: 14.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.1418, allocations: 118.2 kB / 487.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.142, allocations: 362.8 kB / 488.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.1423, allocations: 237.2 kB / 488.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.1427, allocations: 393.7 kB / 488.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.1453, allocations: 1.335 MB / 490.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1453, allocations: 8 kB / 490.1 MB, free: 11.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001593/0.1469, allocations: 0.9668 MB / 491.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.1469, allocations: 33.7 kB / 491.1 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.147, allocations: 4 kB / 491.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008286/0.1478, allocations: 305.7 kB / 491.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009762/0.1488, allocations: 187.7 kB / 491.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005706/0.1545, allocations: 4.852 MB / 496.5 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.1549, allocations: 27.98 kB / 496.5 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.155, allocations: 31.92 kB / 496.5 MB, free: 4.91 MB / 346.7 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 (53): * Single equations (assignments): 50 * 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.0003709/0.1553, allocations: 299.4 kB / 496.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.796e-05/0.1554, allocations: 55.34 kB / 496.9 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.1566, allocations: 0.8176 MB / 497.7 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1566, allocations: 4 kB / 497.7 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1566, allocations: 0 / 497.7 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1566, allocations: 3.984 kB / 497.7 MB, free: 3.664 MB / 346.7 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.002199/0.1588, allocations: 1.677 MB / 499.4 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.1588, allocations: 0 / 499.4 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/0.1601, allocations: 199.8 kB / 499.6 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002394/0.1604, allocations: 78.47 kB / 499.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.1604, allocations: 19.92 kB / 499.7 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002664/0.1631, allocations: 3.953 MB / 0.4918 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1631, allocations: 32 / 0.4918 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009013/0.1721, allocations: 8.865 MB / 0.5005 GB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.1724, allocations: 172.4 kB / 0.5006 GB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.983e-05/0.1725, allocations: 23.92 kB / 0.5006 GB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.1727, allocations: 15.98 kB / 0.5007 GB, free: 3.395 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.07e-05/0.1728, allocations: 36.05 kB / 0.5007 GB, free: 3.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.1729, allocations: 23.97 kB / 0.5007 GB, free: 3.336 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000314/0.1732, allocations: 311.1 kB / 0.501 GB, free: 3.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1732, allocations: 0 / 0.501 GB, free: 3.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008007/0.174, allocations: 224 kB / 0.5012 GB, free: 2.816 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.phi_el,asm_Y_D.motor.w_el,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]) * 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 (41): * Single equations (assignments): 36 * 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.0001268/0.1741, allocations: 121 kB / 0.5013 GB, free: 2.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.1758, allocations: 0.9756 MB / 0.5023 GB, free: 1.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1758, allocations: 0 / 0.5023 GB, free: 1.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007259/0.1765, allocations: 0.6496 MB / 0.5029 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006481/0.1772, allocations: 125.8 kB / 0.5031 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1666/0.3438, allocations: 2.657 MB / 0.5056 GB, free: 65.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005453/0.3444, allocations: 0.9957 MB / 0.5066 GB, free: 64.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005073/0.3449, allocations: 124.1 kB / 0.5067 GB, free: 64.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.345, allocations: 42 kB / 0.5068 GB, free: 64.47 MB / 362.7 MB Notification: Performance of SimCode: time 8.61e-07/0.3451, allocations: 0 / 0.5068 GB, free: 64.47 MB / 362.7 MB Notification: Performance of Templates: time 0.01626/0.3613, allocations: 9.777 MB / 0.5163 GB, free: 62.38 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)