Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009501/0.0009501, allocations: 170.9 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.259/1.259, allocations: 205.4 MB / 222.2 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007282/0.0007282, allocations: 98.23 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.175/0.175, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003488, allocations: 8 kB / 423.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.222, allocations: 56.33 MB / 479.6 MB, free: 9.246 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005496/0.2275, allocations: 6.035 MB / 485.7 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005692/0.2332, allocations: 4.495 MB / 490.2 MB, free: 2.07 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000576/0.2338, allocations: 37.75 kB / 490.2 MB, free: 2.055 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008448/0.2423, allocations: 4.549 MB / 494.7 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.2437, allocations: 473.1 kB / 495.2 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008556/0.2446, allocations: 265.7 kB / 495.5 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002454/0.2471, allocations: 1.954 MB / 497.4 MB, free: 15.81 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.2483, allocations: 0.8374 MB / 498.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005836/0.2489, allocations: 388.8 kB / 498.6 MB, free: 15.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000632/0.2496, allocations: 490.2 kB / 499.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.889e-05/0.2496, allocations: 32.03 kB / 499.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002826/0.2499, allocations: 105.4 kB / 499.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002782/0.2502, allocations: 288 kB / 499.5 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003538/0.2506, allocations: 354 kB / 499.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007141/0.2513, allocations: 0.8025 MB / 0.4889 GB, free: 13.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2513, allocations: 1.688 kB / 0.4889 GB, free: 13.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2513, allocations: 0 / 0.4889 GB, free: 13.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.2513, allocations: 0 / 0.4889 GB, free: 13.74 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.001564/0.2529, allocations: 0.8981 MB / 0.4898 GB, free: 13 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.253, allocations: 8.75 kB / 0.4898 GB, free: 13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003847/0.2534, allocations: 99 kB / 0.4899 GB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.2544, allocations: 0.5971 MB / 0.4905 GB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.105e-05/0.2545, allocations: 79.12 kB / 0.4906 GB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.2546, allocations: 76.59 kB / 0.4906 GB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.2559, allocations: 0.796 MB / 0.4914 GB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.2559, allocations: 9.344 kB / 0.4914 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.117e-05/0.256, allocations: 25.38 kB / 0.4915 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.2561, allocations: 57.62 kB / 0.4915 GB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009526/0.2571, allocations: 0.581 MB / 0.4921 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.2611, allocations: 2.945 MB / 0.495 GB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007507/0.2618, allocations: 430.9 kB / 0.4954 GB, free: 8.949 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.2622, allocations: 230.2 kB / 0.4956 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.2622, allocations: 4.953 kB / 0.4956 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004505/0.2627, allocations: 333.3 kB / 0.4959 GB, free: 8.582 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 2.194e-06/0.2627, allocations: 4 kB / 0.4959 GB, free: 8.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.003024/0.2657, allocations: 2.033 MB / 0.4979 GB, free: 7.059 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.288e-05/0.2658, allocations: 138.6 kB / 0.498 GB, free: 6.898 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004821/0.2663, allocations: 446.7 kB / 0.4985 GB, free: 6.621 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.177e-05/0.2664, allocations: 36.98 kB / 0.4985 GB, free: 6.582 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.2666, allocations: 330.1 kB / 0.4988 GB, free: 6.293 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.2667, allocations: 158.5 kB / 0.499 GB, free: 6.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.2668, allocations: 10.41 kB / 0.499 GB, free: 6.148 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2669, allocations: 364.5 kB / 0.4993 GB, free: 5.797 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.2673, allocations: 228.7 kB / 0.4995 GB, free: 5.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.2677, allocations: 395.8 kB / 0.4999 GB, free: 5.359 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002617/0.2704, allocations: 1.338 MB / 0.5012 GB, free: 4.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2704, allocations: 0 / 0.5012 GB, free: 4.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001696/0.2721, allocations: 0.9707 MB / 0.5022 GB, free: 3.082 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.2721, allocations: 29.7 kB / 0.5022 GB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.2721, allocations: 8 kB / 0.5022 GB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008479/0.273, allocations: 309.6 kB / 0.5025 GB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008681/0.2739, allocations: 171.7 kB / 0.5027 GB, free: 2.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005724/0.2796, allocations: 4.862 MB / 0.5074 GB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.28, allocations: 27.98 kB / 0.5074 GB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.878e-05/0.2801, allocations: 27.98 kB / 0.5075 GB, free: 13.38 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 sytem: $DER.loadInertia.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,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003861/0.2805, allocations: 299.4 kB / 0.5077 GB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.951e-05/0.2805, allocations: 55.52 kB / 0.5078 GB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.2817, allocations: 0.8207 MB / 0.5086 GB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.2817, allocations: 4 kB / 0.5086 GB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2817, allocations: 4 kB / 0.5086 GB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.2817, allocations: 3.984 kB / 0.5086 GB, free: 12.13 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.002198/0.2839, allocations: 1.675 MB / 0.5103 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2839, allocations: 0 / 0.5103 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.2851, allocations: 191.9 kB / 0.5104 GB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002099/0.2853, allocations: 78.52 kB / 0.5105 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.026e-05/0.2853, allocations: 16 kB / 0.5105 GB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002559/0.2879, allocations: 3.957 MB / 0.5144 GB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.2879, allocations: 4.031 kB / 0.5144 GB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.2894, allocations: 1.122 MB / 0.5155 GB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.2896, allocations: 168.4 kB / 0.5156 GB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.881e-05/0.2897, allocations: 19.94 kB / 0.5157 GB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.2899, allocations: 15.98 kB / 0.5157 GB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.29, allocations: 35.95 kB / 0.5157 GB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.2901, allocations: 12 kB / 0.5157 GB, free: 4.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003538/0.2904, allocations: 315.1 kB / 0.516 GB, free: 3.898 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2904, allocations: 0 / 0.516 GB, free: 3.898 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006622/0.2911, allocations: 164 kB / 0.5162 GB, free: 3.738 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001392/0.2912, allocations: 113.7 kB / 0.5163 GB, free: 3.621 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.293, allocations: 0.98 MB / 0.5173 GB, free: 2.602 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.293, allocations: 0 / 0.5173 GB, free: 2.602 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007424/0.2938, allocations: 0.6448 MB / 0.5179 GB, free: 1.906 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000723/0.2945, allocations: 127.1 kB / 0.518 GB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.2972, allocations: 2.093 MB / 0.52 GB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006181/0.2978, allocations: 0.98 MB / 0.521 GB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.298, allocations: 43.42 kB / 0.521 GB, free: 14.59 MB / 362.7 MB Notification: Performance of SimCode: time 6.22e-07/0.298, allocations: 3.938 kB / 0.521 GB, free: 14.59 MB / 362.7 MB Notification: Performance of Templates: time 0.01665/0.3147, allocations: 14.57 MB / 0.5353 GB, free: 12 kB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)