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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001016/0.001016, allocations: 191 kB / 18.63 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1805/0.1805, allocations: 37.99 MB / 309.8 MB, free: 5.98 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 72.45 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2314, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005368/0.2368, allocations: 5.735 MB / 437.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004505/0.2413, allocations: 4.465 MB / 442.2 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002609/0.2416, allocations: 19.88 kB / 442.2 MB, free: 9.246 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.0068/0.2484, allocations: 4.893 MB / 447.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007986/0.2492, allocations: 446 kB / 447.6 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005796/0.2498, allocations: 271.5 kB / 447.8 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.2513, allocations: 1.711 MB / 449.5 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000619/0.2519, allocations: 0.7312 MB / 450.3 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000391/0.2523, allocations: 482.4 kB / 450.7 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004476/0.2528, allocations: 0.4943 MB / 451.2 MB, free: 228 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.415e-05/0.2529, allocations: 72 kB / 451.3 MB, free: 156 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002093/0.2531, allocations: 139.9 kB / 451.5 MB, free: 16 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000324/0.2534, allocations: 327.4 kB / 451.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003533/0.2538, allocations: 402.1 kB / 452.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008859/0.2547, allocations: 1.024 MB / 453.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2547, allocations: 4 kB / 453.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2547, allocations: 0 / 453.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.2547, allocations: 0 / 453.2 MB, free: 14.27 MB / 334.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.001716/0.2564, allocations: 1.024 MB / 454.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.2565, allocations: 11.89 kB / 454.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004001/0.2569, allocations: 111.9 kB / 454.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.258, allocations: 0.6194 MB / 455 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.449e-05/0.2581, allocations: 75.02 kB / 455 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.2583, allocations: 63.89 kB / 455.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.2594, allocations: 0.8099 MB / 455.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.2594, allocations: 3.938 kB / 455.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.529e-05/0.2595, allocations: 24 kB / 455.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/0.2596, allocations: 53.28 kB / 456 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009573/0.2606, allocations: 0.5867 MB / 456.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003689/0.2643, allocations: 2.927 MB / 459.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007259/0.265, allocations: 430.1 kB / 459.9 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.2653, allocations: 226.3 kB / 460.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.2654, allocations: 4.328 kB / 460.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004443/0.2658, allocations: 351.4 kB / 460.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.2658, allocations: 0 / 460.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003159/0.269, allocations: 2.033 MB / 462.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.2691, allocations: 140.5 kB / 462.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005002/0.2696, allocations: 449.8 kB / 463.1 MB, free: 3.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.2697, allocations: 41.7 kB / 463.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.2699, allocations: 316 kB / 463.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.27, allocations: 169.6 kB / 463.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.2702, allocations: 106.2 kB / 463.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2704, allocations: 366.8 kB / 464.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.2707, allocations: 229.2 kB / 464.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004787/0.2712, allocations: 393.7 kB / 464.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/0.2738, allocations: 1.331 MB / 466 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2738, allocations: 4 kB / 466 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001705/0.2755, allocations: 0.9707 MB / 467 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.2756, allocations: 29.7 kB / 467 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.2756, allocations: 8 kB / 467 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008667/0.2764, allocations: 305.7 kB / 467.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008887/0.2773, allocations: 175.7 kB / 467.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006075/0.2834, allocations: 5.29 MB / 472.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.2838, allocations: 23.98 kB / 472.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.575e-05/0.2838, allocations: 27.98 kB / 472.8 MB, free: 9.637 MB / 350.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.000342/0.2842, allocations: 295.6 kB / 473.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.2843, allocations: 71.16 kB / 473.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.2854, allocations: 0.814 MB / 474 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2854, allocations: 7.938 kB / 474 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2855, allocations: 4.062 kB / 474 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.2855, allocations: 7.984 kB / 474 MB, free: 8.367 MB / 350.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.002275/0.2877, allocations: 1.67 MB / 475.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2878, allocations: 0 / 475.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.2889, allocations: 191.9 kB / 475.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/0.2892, allocations: 82.52 kB / 476 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.2892, allocations: 19.94 kB / 476 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/0.2922, allocations: 4.249 MB / 480.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2922, allocations: 0 / 480.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.2936, allocations: 1.128 MB / 481.4 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.2938, allocations: 176.3 kB / 481.5 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.2939, allocations: 15.98 kB / 481.5 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002642/0.2942, allocations: 15.98 kB / 481.6 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.524e-05/0.2943, allocations: 35.91 kB / 481.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.2943, allocations: 11.98 kB / 481.6 MB, free: 128 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003799/0.2947, allocations: 315.3 kB / 481.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2947, allocations: 4 kB / 481.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006756/0.2954, allocations: 164 kB / 482.1 MB, free: 15.65 MB / 366.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.0001651/0.2956, allocations: 115.1 kB / 482.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.2973, allocations: 0.9955 MB / 483.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.2973, allocations: 0 / 483.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007525/0.2981, allocations: 0.6437 MB / 483.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006662/0.2988, allocations: 129.8 kB / 484 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.3011, allocations: 1.648 MB / 485.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005732/0.3017, allocations: 0.9761 MB / 486.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002997/0.302, allocations: 120.7 kB / 486.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.3021, allocations: 43.41 kB / 486.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3021, allocations: 0 / 486.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of Templates: time 0.01357/0.3157, allocations: 8.39 MB / 495.1 MB, free: 2.453 MB / 366.1 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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)